diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-28 00:00:05 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-28 00:00:05 +0000 |
commit | 220d2a7182d8dff19003fa8934176a5073da9182 (patch) | |
tree | 1427c03fb48e383074b58aa1f2c15b94aa6c4d8c /thread.c | |
parent | 5b94fc9601902ca796d5f09fc644f74cad2b0618 (diff) |
Fix KeyError#{key,receiver} of Thread#fetch
[ruby-core:84508] [Bug #14247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3168,7 +3168,7 @@ rb_thread_fetch(int argc, VALUE *argv, VALUE self) return rb_yield(key); } else if (argc == 1) { - rb_raise(rb_eKeyError, "key not found: %"PRIsVALUE, key); + rb_key_err_raise(rb_sprintf("key not found: %+"PRIsVALUE, key), self, key); } else { return argv[1]; |