projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d8079
)
lua: fix error reporting when Lua handler cannot be compiled
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 3 Sep 2014 13:19:53 +0000
(15:19 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 3 Sep 2014 13:19:53 +0000
(15:19 +0200)
Reported-by: Sebastian Apel <sebastian.apel@gmx.de>
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
lua.c
patch
|
blob
|
history
diff --git
a/lua.c
b/lua.c
index aa27ec0837f40e2e9c714acdb02fb51562000fb8..f4a574350abce2b3fe9c6af5e494c91bdfe656d2 100644
(file)
--- 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);