diff options
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r-- | lib/ostruct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb index 0e13f40692..84244b3d9e 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -227,7 +227,7 @@ class OpenStruct begin name = name.to_sym rescue NoMethodError - return + raise TypeError, "#{name} is not a symbol nor a string" end @table.dig(name, *names) end |