summaryrefslogtreecommitdiffhomepage
path: root/tasks/mrbgem_spec.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-05-13 10:41:59 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-05-13 10:41:59 +0900
commit0b858ab801d51b3eda478e30164eda562c14cea4 (patch)
tree8fe785b80ff5ee895630e5356d58bcc5d7dd96f6 /tasks/mrbgem_spec.rake
parent7921fd545c52d9a2bae8fa2cb0cf92fe84ffb55b (diff)
downloadmruby-0b858ab801d51b3eda478e30164eda562c14cea4.tar.gz
mruby-0b858ab801d51b3eda478e30164eda562c14cea4.zip
show a backtrace when when an error occurs on gem load; close #1243
Diffstat (limited to 'tasks/mrbgem_spec.rake')
-rw-r--r--tasks/mrbgem_spec.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake
index f5edc515b..2ed72c3ff 100644
--- a/tasks/mrbgem_spec.rake
+++ b/tasks/mrbgem_spec.rake
@@ -136,6 +136,7 @@ module MRuby
unless rbfiles.empty?
f.puts %Q[ mrb_load_irep(mrb, gem_mrblib_irep_#{funcname});]
f.puts %Q[ if (mrb->exc) {]
+ f.puts %Q[ mrb_print_backtrace(mrb);]
f.puts %Q[ mrb_p(mrb, mrb_obj_value(mrb->exc));]
f.puts %Q[ exit(EXIT_FAILURE);]
f.puts %Q[ }]