mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
nix-build, nix-shell: Don't print error message if nix-store/nix-instantiate fails
This commit is contained in:
parent
c55bf085eb
commit
4546be1b3e
3 changed files with 39 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue