Skip to content

Commit 3603aa6

Browse files
committed
Rescue Exception class to display all errors
1 parent aa0be9b commit 3603aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/javascripts/try_ruby.js.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def eval_code(js_code)
416416
retval = `eval(js_code)`
417417
retval = retval ? retval.to_s : ''
418418
print_to_output(retval) if @output_buffer.length == 0 && !retval.empty?
419-
rescue => err
419+
rescue Exception => err
420420
error = err
421421
log_error(err)
422422
end

0 commit comments

Comments
 (0)