Merge branch 'jc/run-command-report-exec-failure-fix' into maint
authorJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2018 03:24:34 +0000 (12:24 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2018 03:24:34 +0000 (12:24 +0900)
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

1  2 
run-command.c
t/t0061-run-command.sh
diff --cc run-command.c
Simple merge
index cf932c851411e5abd992005de474cc095abecead,8a484878ec8a95f2f72b768056663b971f19f1b5..96bf6d6a7d0145334666fcd15373bad6ac66fd67
@@@ -11,9 -11,11 +11,10 @@@ cat >hello-script <<-EO
        #!$SHELL_PATH
        cat hello-script
  EOF
 ->empty
  
  test_expect_success 'start_command reports ENOENT (slash)' '
-       test-tool run-command start-command-ENOENT ./does-not-exist
+       test-tool run-command start-command-ENOENT ./does-not-exist 2>err &&
+       test_i18ngrep "\./does-not-exist" err
  '
  
  test_expect_success 'start_command reports ENOENT (no slash)' '