lib-httpd.sh: print error.log on error

Failure to bring up httpd for testing is not considered an error, so the trash directory, which contains this error.log file, is removed and we don't know what made httpd fail to start. Improve the situation a bit, print error.log but only in verbose mode. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jun 13, 2016 at 19:35 UTC 44f243d356a6402878b2b3e098fd8cfa4fe1aaf5
1 file changed +1
t/lib-httpd.sh
+1
@@ -180,6 +180,7 @@ start_httpd() {
180 if test $? -ne 0
181 then
182 trap 'die' EXIT
183 + cat "$HTTPD_ROOT_PATH"/error.log >&4 2>/dev/null
184 test_skip_or_die $GIT_TEST_HTTPD "web server setup failed"
185 fi
186 }