Files
lix/tests/functional/lang/eval-fail-toString.err.exp
T
eldritch horrors eb0280f715 libexpr: add set-to-string error frame
this is much more useful than a frame pointing to the set but claiming
it as a function being called. if the function is actually at fault we
will now point to its attribute, although the position may be slightly
wrong if __toString was defined from set updates or builtin functions.

Change-Id: Ib3eb237a276d94426d9c6fc0e26eea72382d34a2
2025-04-27 11:01:22 +00:00

15 lines
445 B
Plaintext

error:
… while calling the 'toString' builtin
at /pwd/lang/eval-fail-toString.nix:1:1:
1| toString { __toString = 1; }
| ^
2|
… while converting a set to string
error: attempt to call something which is not a function but an integer: 1
at /pwd/lang/eval-fail-toString.nix:1:12:
1| toString { __toString = 1; }
| ^
2|