mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
build-remote.pl: Be less verbose on failing builds
This commit is contained in:
parent
56131a2709
commit
62309a2c56
2 changed files with 6 additions and 5 deletions
|
@ -263,7 +263,8 @@ if ($res != 0) {
|
||||||
# or a temporary Nix problem). We propagate this to the caller to
|
# or a temporary Nix problem). We propagate this to the caller to
|
||||||
# allow it to distinguish between transient and permanent
|
# allow it to distinguish between transient and permanent
|
||||||
# failures.
|
# failures.
|
||||||
print STDERR "build of `$drvPath' on `$hostName' failed with exit code $res\n";
|
my $msg = readString($from);
|
||||||
|
print STDERR "error: $msg (on `$hostName')\n";
|
||||||
exit $res;
|
exit $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1013,15 +1013,15 @@ static void opServe(Strings opFlags, Strings opArgs)
|
||||||
settings.maxSilentTime = readInt(in);
|
settings.maxSilentTime = readInt(in);
|
||||||
settings.buildTimeout = readInt(in);
|
settings.buildTimeout = readInt(in);
|
||||||
|
|
||||||
int res = 0;
|
|
||||||
try {
|
try {
|
||||||
MonitorFdHup monitor(in.fd);
|
MonitorFdHup monitor(in.fd);
|
||||||
store->buildPaths(paths);
|
store->buildPaths(paths);
|
||||||
|
writeInt(0, out);
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
printMsg(lvlError, format("error: %1%") % e.msg());
|
assert(e.status);
|
||||||
res = e.status;
|
writeInt(e.status, out);
|
||||||
|
writeString(e.msg(), out);
|
||||||
}
|
}
|
||||||
writeInt(res, out);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue