Skip to content

Commit

Permalink
raise FrozenError instead of RuntimeError
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Jan 20, 2019
1 parent 27f5108 commit afd68cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def reset
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
Expand Down

0 comments on commit afd68cd

Please sign in to comment.