diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-21 16:21:47 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-21 16:54:53 +0200 |
commit | 4546be1b3efd9956fe0f548fbf952b5912024577 (patch) | |
tree | ec7f1449f41085ea5c50dc04b83dd178c2c86822 /src/libutil/util.cc | |
parent | c55bf085eb914bd06bba00670a293b3c0528b81f (diff) |
nix-build, nix-shell: Don't print error message if nix-store/nix-instantiate fails
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 2998506b5..e2f5b087f 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -927,7 +927,7 @@ string runProgram(Path program, bool searchPath, const Strings & args, /* Wait for the child to finish. */ int status = pid.wait(true); if (!statusOk(status)) - throw ExecError(format("program ‘%1%’ %2%") + throw ExecError(status, format("program ‘%1%’ %2%") % program % statusToString(status)); return result; |