diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-09-03 15:19:53 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-09-03 15:19:53 +0200 |
commit | 98839fdd7467f34011ef4b967b285fee3b0d8597 (patch) | |
tree | f00e2b20da92f8ec5341e40658a5a7e4fb691a02 | |
parent | d6d8079d2b8540831c39b1844029dfdd848d0a3a (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>
-rw-r--r-- | lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |