aboutsummaryrefslogtreecommitdiff
path: root/src/build-remote/build-remote.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-08 14:27:12 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-08 14:27:12 +0200
commitebfceeb333120411af46d0af4805f3e7d557159f (patch)
tree0c1ff27bb66bbab8393e6778fa25b2b4e8f2fc04 /src/build-remote/build-remote.cc
parent0a97eb6bd7d459de80432a5dbf39daf16647bb8c (diff)
build-remote: Check remote build status
Diffstat (limited to 'src/build-remote/build-remote.cc')
-rw-r--r--src/build-remote/build-remote.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc
index 8876da6c0..7ffbdca7c 100644
--- a/src/build-remote/build-remote.cc
+++ b/src/build-remote/build-remote.cc
@@ -208,7 +208,10 @@ connected:
drv.inputSrcs = inputs;
printError("building ‘%s’ on ‘%s’", drvPath, storeUri);
- sshStore->buildDerivation(drvPath, drv);
+ auto result = sshStore->buildDerivation(drvPath, drv);
+
+ if (!result.success())
+ throw Error("build of ‘%s’ on ‘%s’ failed: %s", drvPath, storeUri, result.errorMsg);
PathSet missing;
for (auto & path : outputs)