Skip to content

Commit

Permalink
fixup! refactor(cli): generate Diagnostic::message from print_err
Browse files Browse the repository at this point in the history
… inside `emit_annotated_error`
  • Loading branch information
ErichDonGubler committed May 22, 2023
1 parent fbf8fe5 commit 0783e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/bin/naga.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ pub fn emit_annotated_error<E: Error>(ann_err: &WithSpan<E>, filename: &str, sou
.unwrap()
// NOTE: `replace` is intended to correct the alignment of multi-line messages against the
// `error: ` prefix, which is 7 characters.
.replace("\n", "\n ");
.replace('\n', "\n ");
let diagnostic = Diagnostic::error().with_message(msg).with_labels(
ann_err
.spans()
Expand Down

0 comments on commit 0783e3e

Please sign in to comment.