build-remote: Check remote build status

This commit is contained in:
Eelco Dolstra 2017-05-08 14:27:12 +02:00
parent 0a97eb6bd7
commit ebfceeb333
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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)