Files
nix/tests/functional
Linus Heckemann ee03fd478e 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
(cherry picked from commit e55cd3beea710db727fd966f265a1b715b7285f3)
2024-12-09 15:59:59 +01:00
..
2024-11-20 23:03:31 +01:00
2024-11-27 21:41:47 +01:00
2024-07-22 14:52:08 +02:00
2024-08-15 13:04:34 +02:00
2024-08-14 15:35:40 -04:00
2024-05-28 12:32:22 -04:00
2024-08-14 15:35:40 -04:00
2023-10-06 09:05:56 -04:00
2024-10-16 17:18:07 +02:00
2024-09-18 19:06:48 +02:00
2024-07-05 19:18:23 +02:00
2024-11-18 21:04:04 +01:00
2024-11-06 19:45:19 +01:00
2024-11-18 21:04:04 +01:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-06-11 16:05:57 +02:00