aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-16 01:53:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-16 01:53:15 +0000
commit29159b0212030d723a0083528b00e826fe36acc4 (patch)
tree584fe1b879119f70957b5f060192f59bbc007afa /process.c
parent2d62b9f2c5cc96e22d528fbbc1730ceaee3acd83 (diff)
downloadruby-29159b0212030d723a0083528b00e826fe36acc4.tar.gz
removed ruby_error_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/process.c b/process.c
index 324d112e0b..7f5c641852 100644
--- a/process.c
+++ b/process.c
@@ -3857,8 +3857,10 @@ rb_f_abort(int argc, const VALUE *argv)
{
rb_check_arity(argc, 0, 1);
if (argc == 0) {
- if (!NIL_P(GET_THREAD()->errinfo)) {
- ruby_error_print();
+ rb_thread_t *th = GET_THREAD();
+ VALUE errinfo = th->errinfo;
+ if (!NIL_P(errinfo)) {
+ rb_threadptr_error_print(th, errinfo);
}
rb_exit(EXIT_FAILURE);
}