summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-09-03 15:19:53 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-09-03 15:19:53 +0200
commit98839fdd7467f34011ef4b967b285fee3b0d8597 (patch)
treef00e2b20da92f8ec5341e40658a5a7e4fb691a02 /lua.c
parentd6d8079d2b8540831c39b1844029dfdd848d0a3a (diff)
lua: fix error reporting when Lua handler cannot be compiled
Reported-by: Sebastian Apel <sebastian.apel@gmx.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c2
1 files changed, 1 insertions, 1 deletions
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);