diff options
Diffstat (limited to 'core/js_errors.rs')
-rw-r--r-- | core/js_errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js_errors.rs b/core/js_errors.rs index f8707b0ae..0b77945a6 100644 --- a/core/js_errors.rs +++ b/core/js_errors.rs @@ -123,7 +123,8 @@ impl V8Exception { /// Creates a new V8Exception by parsing the raw exception JSON string from V8. pub fn from_json(json_str: &str) -> Option<Self> { let v = serde_json::from_str::<serde_json::Value>(json_str); - if v.is_err() { + if let Err(err) = v { + eprintln!("V8Exception::from_json got problem {}", err); return None; } let v = v.unwrap(); |