aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/set.rb2
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