rcl/golden/error/std_string_parse_int.test
Ruud van Asseldonk ffa513cd27 Include a call stack in error messages
This doesn't swallow important parts of the error (like it did before).
It is verbose, but I think this is friendlier than not explaining where
a call comes from. It also elegantly solves the String.parse_int error
reporting problem.
2023-12-15 23:55:58 +01:00

14 lines
261 B
Text

"0xbadbeef".parse_int()
# output:
stdin:1:1
1 │ "0xbadbeef".parse_int()
╵ ^~~~~~~~~~~
Error: Failed to parse as integer: "0xbadbeef"
stdin:1:22
1 │ "0xbadbeef".parse_int()
╵ ^
In call to method 'String.parse_int'.