We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c8e5d4 commit 2ca43acCopy full SHA for 2ca43ac
crates/bevy_render/src/pipeline/pipeline_compiler.rs
@@ -359,7 +359,9 @@ impl PipelineCompiler {
359
360
fn panic_shader_error(error: ShaderError) -> ! {
361
let msg = error.to_string();
362
- let msg = msg.trim_end().trim_end_matches("Debug log:"); // if this matches, then there wasn't a debug log anyways
363
- let msg = msg.trim_end();
+ let msg = msg
+ .trim_end()
364
+ .trim_end_matches("Debug log:") // if this matches, then there wasn't a debug log anyways
365
+ .trim_end();
366
panic!("{}\n", msg);
367
}
0 commit comments