aboutsummaryrefslogtreecommitdiff
path: root/src/build-remote
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-15 11:46:31 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-15 11:46:31 +0200
commit7a77762961aee116e7179ea57f07e143d74aba1f (patch)
tree40d20ab8f8096bdfb662baf5c96e6725aadd4020 /src/build-remote
parent25d64f3a30e4fe224224d0c0470204215f7e570c (diff)
parentef1b3f21b6e51007d82e8e894dd9ecec0d1c5207 (diff)
Merge branch 'errors-phase-2' of https://github.com/bburdette/nix
Diffstat (limited to 'src/build-remote')
-rw-r--r--src/build-remote/build-remote.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc
index d2ea6c956..49b35a4e9 100644
--- a/src/build-remote/build-remote.cc
+++ b/src/build-remote/build-remote.cc
@@ -200,9 +200,12 @@ static int _main(int argc, char * * argv)
} catch (std::exception & e) {
auto msg = chomp(drainFD(5, false));
- printError("cannot build on '%s': %s%s",
- bestMachine->storeUri, e.what(),
- (msg.empty() ? "" : ": " + msg));
+ logError({
+ .name = "Remote build",
+ .hint = hintfmt("cannot build on '%s': %s%s",
+ bestMachine->storeUri, e.what(),
+ (msg.empty() ? "" : ": " + msg))
+ });
bestMachine->enabled = false;
continue;
}