mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
DerivationBuilderImpl::unprepareBuild Just throw error
Aftet the previous simplifications, there is no reason to catch the error and immediately return it with a `std::variant` --- just let the caller catch it instead.
This commit is contained in:
parent
0b85b023d8
commit
374f8e79a1
4 changed files with 45 additions and 50 deletions
|
|
@ -659,7 +659,7 @@ struct ChrootLinuxDerivationBuilder : ChrootDerivationBuilder, LinuxDerivationBu
|
|||
throw SysError("setuid failed");
|
||||
}
|
||||
|
||||
std::variant<BuildError, SingleDrvOutputs> unprepareBuild() override
|
||||
SingleDrvOutputs unprepareBuild() override
|
||||
{
|
||||
sandboxMountNamespace = -1;
|
||||
sandboxUserNamespace = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue