rcl/golden/error/std_string_split_not_string.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
251 B
Text

"foo,bar,baz".split(1)
# output:
stdin:1:21
1 │ "foo,bar,baz".split(1)
╵ ^
Error: Separator must be a string.
stdin:1:20
1 │ "foo,bar,baz".split(1)
╵ ^
In call to method 'String.split'.