diff --git a/src/drv.cc b/src/drv.cc index 7d1170b..c5e1339 100644 --- a/src/drv.cc +++ b/src/drv.cc @@ -50,8 +50,9 @@ Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, outputs[out.first] = localStore->printStorePath(*out.second); } } catch (const std::exception &e) { - throw state.error("derivation '%s' does not have valid outputs: %s", - attrPath, e.what()); + throw nix::EvalError(state, + "derivation '%s' does not have valid outputs: %s", + attrPath, e.what()); } if (args.meta) {