mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
f0ac2a35d5
* Print the value in `error: cannot coerce` messages This extends the `error: cannot coerce a TYPE to a string` message to print the value that could not be coerced. This helps with debugging by making it easier to track down where the value is being produced from, especially in errors with deep or unhelpful stack traces. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
10 lines
240 B
Text
10 lines
240 B
Text
error:
|
|
… while evaluating a path segment
|
|
|
|
at /pwd/lang/eval-fail-bad-string-interpolation-1.nix:1:2:
|
|
|
|
1| "${x: x}"
|
|
| ^
|
|
2|
|
|
|
|
error: cannot coerce a function to a string: <LAMBDA>
|