mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
"[object Error]" as a result of ''+err is not very helpful
This commit is contained in:
parent
48d6187097
commit
2610ca9066
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
print(JSON.stringify(['err', '' + err]));
|
||||
print(JSON.stringify(['err', err.name + ': ' + err.message]));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue