1
0
Fork 0
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:
Todd Fisher 2012-05-16 15:49:41 -04:00
parent 457c4f2032
commit 6eca6a1afd

View file

@ -29,7 +29,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