diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-12-16 09:44:01 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-12-16 14:55:59 +0900 |
commit | d2f04d332f2ff04f25202ed38e23de526a9aea46 (patch) | |
tree | 905bd8eeda8249a8b1338416703d1254555a5581 /process.c | |
parent | 1e80a208cc44cbbdd4e49d6146eea29cde5cd42a (diff) |
Kernel#abort without arguments should print error info
[Bug #16424]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2754
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4279,7 +4279,7 @@ rb_f_abort(int argc, const VALUE *argv) rb_check_arity(argc, 0, 1); if (argc == 0) { rb_execution_context_t *ec = GET_EC(); - VALUE errinfo = ec->errinfo; + VALUE errinfo = rb_ec_get_errinfo(ec); if (!NIL_P(errinfo)) { rb_ec_error_print(ec, errinfo); } |