EvalError needs to reference an eval state now

This commit is contained in:
Linus Heckemann 2024-04-15 19:35:05 +02:00
parent c1ee00bf7c
commit c3d8ca19b3

View file

@ -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<nix::EvalError>("derivation '%s' does not have valid outputs: %s",
attrPath, e.what());
}