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
15 lines
445 B
Plaintext
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|
|