mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
add more detailed information in exeception message
This commit is contained in:
parent
457c4f2032
commit
6eca6a1afd
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module ExecJS
|
||||||
if e.value["name"] == "SyntaxError"
|
if e.value["name"] == "SyntaxError"
|
||||||
raise RuntimeError, e.message
|
raise RuntimeError, e.message
|
||||||
else
|
else
|
||||||
raise ProgramError, e.message
|
raise ProgramError, e.value.to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue