Files
lix/tests/functional
Linus Heckemann e55cd3beea libutil: handle json builder log messages with unexpected format
Before this change, expressions like:

with import <nixpkgs> {};
runCommand "foo" {} ''
  echo '@nix {}' >&$NIX_LOG_FD
''

would result in Lix crashing, because accessing nonexistent fields of
a JSON object throws an exception.

Rather than handling each field individually, we just catch JSON
exceptions wholesale. Since these log messages are an unusual
circumstance, log a warning when this happens.

Fixes #544.

Change-Id: Idc2d8acf6e37046b3ec212f42e29269163dca893
2024-10-15 11:15:42 +02:00
..
2024-05-06 18:56:40 +02:00
2024-10-05 16:21:19 +00:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2024-05-06 18:56:40 +02:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-08-17 15:48:10 +00:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-08-17 15:48:10 +00:00
2024-05-28 04:20:00 +00:00