From 9d962ef667ef6006cca7bac7489d5bf303a2a244 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Fri, 17 Dec 2021 11:09:19 -0500 Subject: [PATCH] Improve error messages --- examples/compute/shader.wgsl | 1 - src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/compute/shader.wgsl b/examples/compute/shader.wgsl index 9a14f906..df541aff 100644 --- a/examples/compute/shader.wgsl +++ b/examples/compute/shader.wgsl @@ -1,4 +1,3 @@ -[[block]] struct PrimeIndices { data: [[stride(4)]] array; }; // this is used as both input and output for convenience diff --git a/src/lib.rs b/src/lib.rs index b4a8ca5d..9e082ddc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,9 +48,9 @@ impl OwnedLabel { } #[track_caller] -pub fn check_error(input: (I, Option)) -> I { +pub fn check_error(input: (I, Option)) -> I { if let Some(error) = input.1 { - panic!("{:?}", error); + panic!("{}", error); } input.0