Skip to content

Commit 1a60ef9

Browse files
WIP: move leading newline in shader creation err. msg. to calling code
1 parent bbff2c4 commit 1a60ef9

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
@@ -46,6 +46,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
4646
let mut writer = term::termcolor::NoColor::new(Vec::new());
4747
term::emit(&mut writer, &config, &files, &self.inner.diagnostic())
4848
.expect("cannot write error");
49+
// TODO: remove this silly newline, make applications provide it
4950
write!(
5051
f,
5152
"\nShader validation {}",

0 commit comments

Comments
 (0)