From 98839fdd7467f34011ef4b967b285fee3b0d8597 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 3 Sep 2014 15:19:53 +0200 Subject: [PATCH] lua: fix error reporting when Lua handler cannot be compiled Reported-by: Sebastian Apel Signed-off-by: Jo-Philipp Wich --- lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1