diff --git a/tests/snapshots.rs b/tests/snapshots.rs index 3bb1f1798..7987415bd 100644 --- a/tests/snapshots.rs +++ b/tests/snapshots.rs @@ -456,7 +456,7 @@ fn convert_wgsl() { .expect("Couldn't find wgsl file"); match naga::front::wgsl::parse_str(&file) { Ok(module) => check_targets(&module, name, targets), - Err(e) => panic!("{}", e), + Err(e) => panic!("{}", e.emit_to_string(&file)), } } }