mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Merge pull request #88 from taf2/master
Minor change to include more detail for V8 runtime exceptions
This commit is contained in:
commit
468f32bcbc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module ExecJS
|
|||
if e.value["name"] == "SyntaxError"
|
||||
raise RuntimeError, e.message
|
||||
else
|
||||
raise ProgramError, e.message
|
||||
raise ProgramError, e.value.to_s
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue