From: Jo-Philipp Wich Date: Wed, 3 Sep 2014 13:19:53 +0000 (+0200) Subject: lua: fix error reporting when Lua handler cannot be compiled X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98839fdd7467f34011ef4b967b285fee3b0d8597;p=oweals%2Fuhttpd.git lua: fix error reporting when Lua handler cannot be compiled Reported-by: Sebastian Apel Signed-off-by: Jo-Philipp Wich --- diff --git a/lua.c b/lua.c index aa27ec0..f4a5743 100644 --- a/lua.c +++ b/lua.c @@ -255,7 +255,7 @@ static void lua_main(struct client *cl, struct path_info *pi, char *url) printf("Status: 500 Internal Server Error\r\n\r\n" "Unable to launch the requested Lua program:\n" - " %s: %s\n", pi->phys, strerror(errno)); + " %s: %s\n", pi->phys, error); } exit(0);