Skip to content

Commit 13961d4

Browse files
eregonCopilot
andauthored
Use base.inspect in error message
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8723257 commit 13961d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/strscan/truffleruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def scan_integer(base: 10)
185185
when 16
186186
scan(/[+-]?(0x)?[0-9a-fA-F]+/)&.to_i(16)
187187
else
188-
raise ArgumentError, "Unsupported integer base: #{base}, expected 10 or 16"
188+
raise ArgumentError, "Unsupported integer base: #{base.inspect}, expected 10 or 16"
189189
end
190190
end
191191

0 commit comments

Comments
 (0)