lib/h8/errors.rb in h8-0.5.0 vs lib/h8/errors.rb in h8-0.5.1
- old
+ new
@@ -42,9 +42,13 @@
# The exception that carries out uncaught ruby exception #ruby_error
# therefore it is possible to get javascript backtrace too
class NestedError < JsError
# The uncaught ruby exception
attr :ruby_error
+
+ def to_s
+ ruby_error.to_s
+ end
end
# Script execution is timed out (see H8::Context#eval timeout parameter)
class TimeoutError < JsError
def initialize message