errors: use -Z terminal-width in JSON emitter
This commit makes the JSON emitter use `-Z terminal-width` in the "rendered" field of the JSON output. Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
@@ -191,8 +191,15 @@ pub fn new_handler(
|
||||
Lrc::new(source_map::SourceMap::new(source_map::FilePathMapping::empty()))
|
||||
});
|
||||
Box::new(
|
||||
JsonEmitter::stderr(None, source_map, pretty, json_rendered, false)
|
||||
.ui_testing(debugging_opts.ui_testing),
|
||||
JsonEmitter::stderr(
|
||||
None,
|
||||
source_map,
|
||||
pretty,
|
||||
json_rendered,
|
||||
debugging_opts.terminal_width,
|
||||
false,
|
||||
)
|
||||
.ui_testing(debugging_opts.ui_testing),
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user