Skip to content

Commit aa12277

Browse files
WIP: move leading newline in shader creation err. msg. to calling code
1 parent 894d036 commit aa12277

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

naga/src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
4343
let mut writer = termcolor::NoColor::new(Vec::new());
4444
term::emit(&mut writer, &config, &files, &self.inner.diagnostic())
4545
.expect("cannot write error");
46+
// TODO: remove this silly newline, make applications provide it
4647
write!(
4748
f,
4849
"\nShader validation {}",

0 commit comments

Comments
 (0)