Skip to content

Commit

Permalink
wgsl: Do not make error output colorful when the terminal is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd authored and kvark committed Jan 29, 2022
1 parent f98053a commit d6f8958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/front/wgsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ impl ParseError {
pub fn emit_to_stderr_with_path(&self, source: &str, path: &str) {
let files = SimpleFile::new(path, source);
let config = codespan_reporting::term::Config::default();
let writer = StandardStream::stderr(ColorChoice::Always);
let writer = StandardStream::stderr(ColorChoice::Auto);
term::emit(&mut writer.lock(), &config, &files, &self.diagnostic())
.expect("cannot write error");
}
Expand Down

0 comments on commit d6f8958

Please sign in to comment.