From 12d94246dfc28f33c4621fa056df0cf6c3ee4400 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 25 Nov 2011 22:50:43 +0000 Subject: [PATCH] improve test error messages --- test/setup_transfer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/setup_transfer.cpp b/test/setup_transfer.cpp index a78eafd7a..3441ac155 100644 --- a/test/setup_transfer.cpp +++ b/test/setup_transfer.cpp @@ -1066,6 +1066,7 @@ void web_server_thread(int* port, bool ssl, bool chunked) int res = load_file(path, file_buf, ec); if (res == -1) { + fprintf(stderr, ">> file not found: %s\n", path.c_str()); send_response(s, ec, 404, "Not Found", extra_header, 0); continue; } @@ -1073,6 +1074,7 @@ void web_server_thread(int* port, bool ssl, bool chunked) if (res != 0) { // this means the file was either too big or couldn't be read + fprintf(stderr, ">> file too big: %s\n", path.c_str()); send_response(s, ec, 503, "Internal Error", extra_header, 0); continue; }