aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-12-13 16:53:23 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-12-13 16:53:23 +0000
commitd787285af997a607bb678f39f340e663fafd3122 (patch)
tree42eecd29e47fdcf52f673ac0d5020d8d76ad8592 /src/libmain
parent5833243c92f28759ff0fc1ff9266535a3230e2d6 (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/libmain')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 7c2d92030..68f145820 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -393,7 +393,7 @@ int main(int argc, char * * argv)
printMsg(lvlError, format("error: %1%%2%") % (showTrace ? e.prefix() : "") % e.msg());
if (e.prefix() != "" && !showTrace)
printMsg(lvlError, "(use `--show-trace' to show detailed location information)");
- return 1;
+ return e.status;
} catch (std::exception & e) {
printMsg(lvlError, format("error: %1%") % e.what());
return 1;