summaryrefslogtreecommitdiffstats
path: root/run-command.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-12-15 12:24:34 +0900
committerJunio C Hamano <gitster@pobox.com>2018-12-15 12:24:34 +0900
commit83243020c8537d48bdaf5d6d43c4be36ad47c8b0 (patch)
tree472f9f546c271b2ee3c2803aa1c935b2c0631d88 /run-command.c
parent916f56d38bc86cf8bed0698afde5051c05e7cc68 (diff)
parente5a329a279c7ecb5214ccc049ca659aa3ad733cf (diff)
downloadgit-83243020c8537d48bdaf5d6d43c4be36ad47c8b0.tar.gz
git-83243020c8537d48bdaf5d6d43c4be36ad47c8b0.tar.xz
Merge branch 'jc/run-command-report-exec-failure-fix' into maint
A recent update accidentally squelched an error message when the run_command API failed to run a missing command, which has been corrected. * jc/run-command-report-exec-failure-fix: run-command: report exec failure
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c
index c11ff8067..3db26b7b0 100644
--- a/run-command.c
+++ b/run-command.c
@@ -728,6 +728,8 @@ fail_pipe:
if (prepare_cmd(&argv, cmd) < 0) {
failed_errno = errno;
cmd->pid = -1;
+ if (!cmd->silent_exec_failure)
+ error_errno("cannot run %s", cmd->argv[0]);
goto end_of_spawn;
}