1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* nix-instantiate: return exit status 100 to denote a permanent build

failure.  The build hook can use this to distinguish between
  transient and permanent failures on the remote side.
This commit is contained in:
Eelco Dolstra 2010-12-13 16:53:23 +00:00
parent 5833243c92
commit d787285af9
5 changed files with 29 additions and 14 deletions

View file

@ -20,7 +20,8 @@ extern char * * environ;
namespace nix {
BaseError::BaseError(const format & f)
BaseError::BaseError(const format & f, unsigned int status)
: status(status)
{
err = f.str();
}