From 5f1df038fb1462607af3555fa7431c05ca484dce Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Sun, 5 Jan 2020 09:19:29 -0500 Subject: Replace libdeno with rusty_v8 (#3556) --- core/js_errors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/js_errors.rs') 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 { let v = serde_json::from_str::(json_str); - if v.is_err() { + if let Err(err) = v { + eprintln!("V8Exception::from_json got problem {}", err); return None; } let v = v.unwrap(); -- cgit v1.2.3