Shay Bergmann
ba81e871b2
toJSON: report error position for fancier output
Given flake:
```nix
{ description = "nix json error provenance";
inputs = {};
outputs = { self }: {
jsonFunction = _: "function";
json = builtins.toJSON (_: "function");
};
}
```
- Before:
```console
❯ nix eval --json .#jsonFunction
error: cannot convert a function to JSON
```
- After:
```console
❯ nix eval --json .#jsonFunction
error: cannot convert a function to JSON
at /nix/store/b7imf1c2j4jnkg3ys7fsfbj02s5j0i4f-source/testflake/flake.nix:4:5:
3| outputs = { self }: {
4| jsonFunction = _: "function";
| ^
5| json = builtins.toJSON (_: "function");
```
2021-10-25 21:17:52 +00:00
..
2021-10-07 14:22:39 +02:00
2021-10-17 12:54:53 -05:00
2021-07-19 18:10:10 +02:00
2021-07-19 18:10:10 +02:00
2020-12-18 21:48:22 +01:00
2021-08-29 18:11:58 +02:00
2021-07-22 09:59:51 +02:00
2021-07-22 09:59:51 +02:00
2021-04-19 19:51:04 +02:00
2021-04-19 19:51:04 +02:00
2021-01-21 11:02:09 +01:00
2021-10-07 14:22:39 +02:00
2021-10-07 14:22:39 +02:00
2020-12-22 14:43:20 +01:00
2020-06-18 22:11:26 +00:00
2020-01-05 16:21:34 +01:00
2021-04-05 08:33:00 -04:00
2020-08-07 19:51:55 +00:00
2020-03-11 16:57:48 +01:00
2020-09-21 14:24:43 -04:00
2019-11-10 11:24:47 -05:00
2021-09-29 19:47:01 -04:00
2021-08-30 12:44:29 +02:00
2019-03-14 14:11:12 +01:00
2021-10-06 17:24:06 +02:00
2021-10-06 17:24:06 +02:00
2021-10-06 17:24:06 +02:00
2021-10-25 21:17:52 +00:00
2021-09-29 11:57:15 +02:00
2020-04-17 01:02:29 +02:00
2021-10-25 21:17:52 +00:00
2021-10-25 21:17:52 +00:00
2021-10-06 17:24:06 +02:00
2012-07-18 14:59:03 -04:00
2021-04-13 23:12:38 +02:00