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 authored Mar 29, 2021
1 parent 7ab2e0d commit cac1101
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 cac1101

Please sign in to comment.