Skip to content

Commit 2ca43ac

Browse files
Update crates/bevy_render/src/pipeline/pipeline_compiler.rs
Co-authored-by: MinerSebas <[email protected]>
1 parent 1c8e5d4 commit 2ca43ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/bevy_render/src/pipeline/pipeline_compiler.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ impl PipelineCompiler {
359359

360360
fn panic_shader_error(error: ShaderError) -> ! {
361361
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();
362+
let msg = msg
363+
.trim_end()
364+
.trim_end_matches("Debug log:") // if this matches, then there wasn't a debug log anyways
365+
.trim_end();
364366
panic!("{}\n", msg);
365367
}

0 commit comments

Comments
 (0)