diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-24 12:43:59 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-24 12:43:59 +0200 |
commit | 62309a2c56206821370b87285fcacacba1cb3566 (patch) | |
tree | d76d238a2a0d25c52d8fb90e300e639c34af10e1 /src/nix-store/nix-store.cc | |
parent | 56131a2709d76a1e52bada83a083bd2cfee2f716 (diff) |
build-remote.pl: Be less verbose on failing builds
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r-- | src/nix-store/nix-store.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 42012f2e7..f874ffead 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -1013,15 +1013,15 @@ static void opServe(Strings opFlags, Strings opArgs) settings.maxSilentTime = readInt(in); settings.buildTimeout = readInt(in); - int res = 0; try { MonitorFdHup monitor(in.fd); store->buildPaths(paths); + writeInt(0, out); } catch (Error & e) { - printMsg(lvlError, format("error: %1%") % e.msg()); - res = e.status; + assert(e.status); + writeInt(e.status, out); + writeString(e.msg(), out); } - writeInt(res, out); break; } |