aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 07:41:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 07:41:35 +0000
commit14a730e91ee6176cc60ba3fc1cd368e47bd2f7b0 (patch)
tree4d355f722daedd8acdb45a77c0dbaf239f2713b3 /eval_error.c
parent257fd90166f62943ff767e5cd7b0624c12074a8b (diff)
downloadruby-14a730e91ee6176cc60ba3fc1cd368e47bd2f7b0.tar.gz
immediate message mode of compile error
* compile.c (append_compile_error): set Qtrue for erred state with showing the message immediately. * iseq.c (prepare_iseq_build): make immediate message mode if main or top level context, not to show the failed path twice in the first line. * iseq.c (cleanup_iseq_build): raise default message exception if immediate message mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index ff3db23a6b..b6f680748c 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -294,7 +294,7 @@ error_handle(int ex)
/* no message when exiting by signal */
}
else {
- error_print(th);
+ rb_threadptr_error_print(th, errinfo);
}
break;
}