mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
83bb494a30
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.
9 lines
297 B
Plaintext
9 lines
297 B
Plaintext
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 @ /pwd/lang/eval-fail-bad-string-interpolation-1.nix:1:4»
|