1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

make default error messages better

This commit is contained in:
Charles Lowell 2010-02-08 11:23:13 -06:00
parent 06d7674642
commit d4fb87dd94

View file

@ -79,7 +79,7 @@ module V8
end
class JavascriptError < StandardError
def initialize(v8_message)
super(v8_message.Get())
super("#{v8_message.Get()}: #{v8_message.GetSourceLine()}")
@native = v8_message
end