chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266bde4
)
improve a message
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 11 Oct 2020 21:46:05 +0000
(22:46 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 11 Oct 2020 21:46:05 +0000
(22:46 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wasm/wasm.rs
patch
|
blob
|
history
diff --git
a/wasm/wasm.rs
b/wasm/wasm.rs
index af7a2c7e08aa38fe618d2934b93b9ffb72e3a159..8f4315119d7d952fd744d48013661e3e6b8b1a8b 100644
(file)
--- a/
wasm/wasm.rs
+++ b/
wasm/wasm.rs
@@
-31,7
+31,8
@@
impl<E:Display, V> WasmResult<V> for Result<V, E> {
#[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()?;
}