Skip to content

Commit

Permalink
Update crates/bevy_render/src/pipeline/pipeline_compiler.rs
Browse files Browse the repository at this point in the history
Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
  • Loading branch information
jakobhellermann and MinerSebas committed Mar 31, 2021
1 parent 1c8e5d4 commit 2ca43ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bevy_render/src/pipeline/pipeline_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ impl PipelineCompiler {

fn panic_shader_error(error: ShaderError) -> ! {
let msg = error.to_string();
let msg = msg.trim_end().trim_end_matches("Debug log:"); // if this matches, then there wasn't a debug log anyways
let msg = msg.trim_end();
let msg = msg
.trim_end()
.trim_end_matches("Debug log:") // if this matches, then there wasn't a debug log anyways
.trim_end();
panic!("{}\n", msg);
}

0 comments on commit 2ca43ac

Please sign in to comment.