From 4204e5e027e501da7cdf58ee3c4b07cfaf6e205c Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 22 Aug 2021 19:31:11 -0700 Subject: [PATCH] [wgsl-in] Print errors nicely in convert_wgsl snapshot tests. (#1274) --- tests/snapshots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), } } }