diff --git a/src/shader.rs b/src/shader.rs index a39ac7f..7ef7ef1 100644 --- a/src/shader.rs +++ b/src/shader.rs @@ -147,7 +147,7 @@ impl ShaderLoader { match parser.parse(&source) { Ok(module) => Ok(module), // TODO handle parsing errors - Err(error) => panic!("wgsl parsing error:\n{}", error), + Err(error) => panic!("wgsl parsing error:\n{}", error.emit_to_string(&source)), } }