forked from lix-project/lix
Rebecca Turner
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.
10 lines
503 B
Plaintext
10 lines
503 B
Plaintext
error:
|
|
… while evaluating a path segment
|
|
at /pwd/lang/eval-fail-bad-string-interpolation-4.nix:9:3:
|
|
8| # The error message should not be too long.
|
|
9| ''${pkgs}''
|
|
| ^
|
|
10|
|
|
|
|
error: cannot coerce a set to a string: { a = { a = { a = { a = "ha"; b = "ha"; c = "ha"; d = "ha"; e = "ha"; f = "ha"; g = "ha"; h = "ha"; j = "ha"; }; «4294967295 attributes elided»}; «4294967294 attributes elided»}; «4294967293 attributes elided»}
|