diff options
Diffstat (limited to 'libbuild2/functions-json.cxx')
-rw-r--r-- | libbuild2/functions-json.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/functions-json.cxx b/libbuild2/functions-json.cxx index e06d9a5..9c59c4b 100644 --- a/libbuild2/functions-json.cxx +++ b/libbuild2/functions-json.cxx @@ -295,8 +295,8 @@ namespace build2 } catch (const invalid_json_output& e) { - diag_record dr; - dr << fail << "invalid json value: " << e; + diag_record dr (fail); + dr << "invalid json value: " << e; if (e.event) dr << info << "while serializing " << to_string (*e.event); |