log err if unable to open http file
authorAndy Green <andy.green@linaro.org>
Fri, 3 May 2013 13:13:35 +0000 (21:13 +0800)
committerAndy Green <andy.green@linaro.org>
Fri, 3 May 2013 13:13:35 +0000 (21:13 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/output.c

index 8ff3d64..ef823c3 100644 (file)
@@ -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"
                );