diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-13T16·53+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-13T16·53+0000 |
commit | d787285af997a607bb678f39f340e663fafd3122 (patch) | |
tree | 42eecd29e47fdcf52f673ac0d5020d8d76ad8592 /src/libutil/util.cc | |
parent | 5833243c92f28759ff0fc1ff9266535a3230e2d6 (diff) |
* 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.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 990962763e1f..9adaac40d56e 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -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(); } |