summaryrefslogtreecommitdiff
path: root/core/js_errors.rs
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2020-01-05 09:19:29 -0500
committerGitHub <noreply@github.com>2020-01-05 09:19:29 -0500
commit5f1df038fb1462607af3555fa7431c05ca484dce (patch)
tree0e819c1e1ec422b9573abc379c79fcbcc1cbd88c /core/js_errors.rs
parentc41280a057c9ca300afe43f2cb4f576e050f8cde (diff)
Replace libdeno with rusty_v8 (#3556)
Diffstat (limited to 'core/js_errors.rs')
-rw-r--r--core/js_errors.rs3
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();