Skip to content

Commit

Permalink
Do not include a backtick in error messages and backtraces
Browse files Browse the repository at this point in the history
[Feature #16495]
  • Loading branch information
mame authored and hsbt committed Feb 16, 2024
1 parent 0985296 commit 06ce005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ostruct.rb
Expand Up @@ -376,7 +376,7 @@ def delete_field(name, &block)
end
@table.delete(sym) do
return yield if block
raise! NameError.new("no field `#{sym}' in #{self}", sym)
raise! NameError.new("no field '#{sym}' in #{self}", sym)
end
end

Expand Down

0 comments on commit 06ce005

Please sign in to comment.