Skip to content

Commit

Permalink
WIP: move leading newline in shader creation err. msg. to calling code
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 11, 2025
1 parent 4efc992 commit 06bbc2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions naga/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
let mut writer = termcolor::NoColor::new(Vec::new());
term::emit(&mut writer, &config, &files, &self.inner.diagnostic())
.expect("cannot write error");
// TODO: remove this silly newline, make applications provide it
write!(
f,
"\nShader validation {}",
Expand Down

0 comments on commit 06bbc2f

Please sign in to comment.