diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-20 04:44:25 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-20 04:44:25 +0000 |
commit | afd68cd87114fb49158462f1594cacfd2b765e9b (patch) | |
tree | 051904b0a82ecb823f7fbb615cf505771f37a8c1 /lib | |
parent | 27f51081d3b0a4bfb94df1153c005c9bc2c748ba (diff) | |
download | ruby-afd68cd87114fb49158462f1594cacfd2b765e9b.tar.gz |
raise FrozenError instead of RuntimeError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb index e639636c97..921f18f97b 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -527,7 +527,7 @@ class Set if @hash.respond_to?(:rehash) @hash.rehash # This should perform frozenness check. else - raise "can't modify frozen #{self.class.name}" if frozen? + raise FrozenError, "can't modify frozen #{self.class.name}" if frozen? end self end |