aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index df09cc953f..6b60bdf3fe 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -152,7 +152,7 @@ class OpenStruct
begin
@modifiable = true
rescue
- raise TypeError, "can't modify frozen #{self.class}", caller(3)
+ raise RuntimeError, "can't modify frozen #{self.class}", caller(3)
end
@table
end