diff options
Diffstat (limited to 'nix/libutil/util.cc')
| -rw-r--r-- | nix/libutil/util.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nix/libutil/util.cc b/nix/libutil/util.cc index 9a97270af90..77f2547b0a5 100644 --- a/nix/libutil/util.cc +++ b/nix/libutil/util.cc | |||
| @@ -1193,7 +1193,9 @@ string runProgram(Path program, bool searchPath, const Strings & args) | |||
| 1193 | else | 1193 | else |
| 1194 | execv(program.c_str(), stringsToCharPtrs(args_).data()); | 1194 | execv(program.c_str(), stringsToCharPtrs(args_).data()); |
| 1195 | 1195 | ||
| 1196 | throw SysError(format("executing `%1%'") % program); | 1196 | int err = errno; |
| 1197 | printMsg(lvlError, format("executing `%1%': %2%") % program % strerror(err)); | ||
| 1198 | _exit(127); | ||
| 1197 | }); | 1199 | }); |
| 1198 | 1200 | ||
| 1199 | pipe.writeSide.close(); | 1201 | pipe.writeSide.close(); |
