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()); }