diff options
-rw-r--r-- | src/build-remote/build-remote.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 8876da6c063c..7ffbdca7c0f4 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) |