[wgsl-in] Print errors nicely in convert_wgsl snapshot tests. (#1274)

This commit is contained in:
Jim Blandy authored and Dzmitry Malyshau committed 2021-08-24 18:04:02 -04:00
1 parent 680f80103b
commit 4204e5e027
1 file changed
+1 -1
+1 -1
View File
@@ -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)),
}
}
}