From: Ian Jackson Date: Sun, 11 Oct 2020 21:46:05 +0000 (+0100) Subject: improve a message X-Git-Tag: otter-0.2.0~676 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ed26b3197ef5e753a27d12f0c30d5f4bc6bd157e;p=otter.git improve a message Signed-off-by: Ian Jackson --- diff --git a/wasm/wasm.rs b/wasm/wasm.rs index af7a2c7e..8f431511 100644 --- a/wasm/wasm.rs +++ b/wasm/wasm.rs @@ -31,7 +31,8 @@ impl WasmResult for Result { #[wasm_bindgen] pub fn check(packed: &JsValue) { let s = packed.as_string().ok_or_else( - ||"packed Z coordinate wrong JS type (not a string)" + ||format!("packed Z coordinate wrong JS type (not a string): {:?}", + packed) ).e()?; ZCoord::check_str(&s).ok_or(zcoord::ParseError).e()?; }