diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-05-25 12:32:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-05-25 12:32:22 +0200 |
commit | 91b7d5373acdc5d9b3f2c13d16b9850ab5fc9e9d (patch) | |
tree | f807d49aefb53b7864109a9a1dc3780840872e53 /src/libexpr/value-to-json.cc | |
parent | ba035f7dd03232d093a1265778b9587bab92cf1d (diff) |
Style tweaks
Diffstat (limited to 'src/libexpr/value-to-json.cc')
-rw-r--r-- | src/libexpr/value-to-json.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libexpr/value-to-json.cc b/src/libexpr/value-to-json.cc index 6a95e0414..03504db61 100644 --- a/src/libexpr/value-to-json.cc +++ b/src/libexpr/value-to-json.cc @@ -100,8 +100,7 @@ void printValueAsJSON(EvalState & state, bool strict, void ExternalValueBase::printValueAsJSON(EvalState & state, bool strict, JSONPlaceholder & out, PathSet & context) const { - auto e = TypeError("cannot convert %1% to JSON", showType()); - state.debugThrowLastTrace(e); + state.debugThrowLastTrace(TypeError("cannot convert %1% to JSON", showType())); } |