summaryrefslogtreecommitdiff
path: root/lib/mjit/compiler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mjit/compiler.rb')
-rw-r--r--lib/mjit/compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mjit/compiler.rb b/lib/mjit/compiler.rb
index 734e33e59f..806e7f55c4 100644
--- a/lib/mjit/compiler.rb
+++ b/lib/mjit/compiler.rb
@@ -43,9 +43,9 @@ module RubyVM::MJIT
C.fprintf(f, "\n} // end of #{funcname}\n")
return success
- rescue => e # Should rb_rescue be called in C?
+ rescue Exception => e # should we use rb_rescue in C instead?
if C.mjit_opts.warnings || C.mjit_opts.verbose > 0
- $stderr.puts e.full_message
+ $stderr.puts "MJIT error: #{e.full_message}"
end
return false
end