From c3d8ca19b39f4cc5a2df1061baf649d1fe20517e Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Mon, 15 Apr 2024 19:35:05 +0200 Subject: [PATCH] EvalError needs to reference an eval state now --- src/drv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv.cc b/src/drv.cc index 14fd352..7d1170b 100644 --- a/src/drv.cc +++ b/src/drv.cc @@ -50,7 +50,7 @@ Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, outputs[out.first] = localStore->printStorePath(*out.second); } } catch (const std::exception &e) { - throw nix::EvalError("derivation '%s' does not have valid outputs: %s", + throw state.error("derivation '%s' does not have valid outputs: %s", attrPath, e.what()); }