aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc4
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,
}
)
);