diff options
-rw-r--r-- | plop.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -183,6 +183,15 @@ int plop_handle_client(lua_State * L, struct epoll_event * event) } default: { + const char * err = lua_tostring(c->L, -1); + + if (NULL == err) + { + err = "Unknown error ocurred"; + } + + dprintf(2, "%s\n", err); + lua_pop(c->L, 1); connection_free(L, c); return -1; } |