summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2023-04-03 13:30:39 -0700
committerdormando <dormando@rydia.net>2023-04-03 13:30:39 -0700
commit8f9a2e653dedcabd7f1932e73e73e15c940f3d92 (patch)
tree8434854c544211a067598086304feaf16b0d5b1b
parentf4f273f6eb1c62d0162df8795933d63b85ce1334 (diff)
downloadmemcached-8f9a2e653dedcabd7f1932e73e73e15c940f3d92.tar.gz
proxy: print lua error on reload failure
When failing to run mcp_config_routes on a worker thread, we were eating the lua error message. This is now consistent with the rest of the code.
-rw-r--r--proxy_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_config.c b/proxy_config.c
index cca6b87..98af5c2 100644
--- a/proxy_config.c
+++ b/proxy_config.c
@@ -400,7 +400,7 @@ int proxy_thread_loadconf(proxy_ctx_t *ctx, LIBEVENT_THREAD *thr) {
int res = lua_pcall(L, 0, LUA_MULTRET, 0);
if (res != LUA_OK) {
// FIXME (v2): don't exit here!
- fprintf(stderr, "Failed to load data into worker thread\n");
+ fprintf(stderr, "Failed to load data into worker thread: %s\n", lua_tostring(L, -1));
return -1;
}