go-jsonnet/testdata/builtinSubStr_second_parameter_not_number.golden
Stanisław Barzowski 797bfd89ed Better handling of stack traces.
Fixes multiple issues with stack traces leading to missing
stack trace lines. Also, we no longer put builtin context
on the line which *calls* the builtin as if it was a part
of the builtin itself.

Code for stack trace handling was centralized. We no longer
need traceElement argument in ~every function. Now the stack
trace state is kept solely in the interpreter.
2020-11-21 15:36:05 +01:00

11 lines
285 B
Plaintext

RUNTIME ERROR: substr second parameter should be a number, got string
-------------------------------------------------
testdata/builtinSubStr_second_parameter_not_number:1:1-30 $
std.substr("hello", "foo", 5)
-------------------------------------------------
During evaluation