diff options
author | Qyriad <qyriad@qyriad.me> | 2024-05-07 18:28:29 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-05-08 13:37:20 -0600 |
commit | 54322f09d353e296b06ce8b1f4264749a7ccd489 (patch) | |
tree | 277ef062a46a4dba41cb06c6fff4a4b29fbe797e /src/nix/eval.cc | |
parent | 8822fd7dd5254e781660704858f2eca386bdf5a2 (diff) |
nix3-eval: don't elide top-level errors
Fixes #276.
Change-Id: I83e71beb5c35d6f3b10a4186caa5e52a2f95b510
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r-- | src/nix/eval.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc index a9e4c8968..469ff7391 100644 --- a/src/nix/eval.cc +++ b/src/nix/eval.cc @@ -1,5 +1,6 @@ #include "command-installable-value.hh" #include "common-args.hh" +#include "print-options.hh" #include "shared.hh" #include "store-api.hh" #include "eval.hh" @@ -127,7 +128,8 @@ struct CmdEval : MixJSON, InstallableValueCommand, MixReadOnlyOption *v, PrintOptions { .force = true, - .derivationPaths = true + .derivationPaths = true, + .errors = ErrorPrintBehavior::ThrowTopLevel, } ) ); |