From 66986b2e853f8df31fadd1c114ed36b5b94e4665 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 3 May 2013 21:13:35 +0800 Subject: [PATCH] log err if unable to open http file Signed-off-by: Andy Green --- lib/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/output.c b/lib/output.c index 8ff3d640..ef823c3e 100644 --- a/lib/output.c +++ b/lib/output.c @@ -576,6 +576,7 @@ LWS_VISIBLE int libwebsockets_serve_http_file(struct libwebsocket_context *conte ); if (wsi->u.http.fd < 1) { + lwsl_err("Unable to open '%s'\n", file); p += sprintf((char *)p, "HTTP/1.0 400 Bad\x0d\x0aServer: libwebsockets\x0d\x0a\x0d\x0a" );