diff options
author | dormando <dormando@rydia.net> | 2023-04-03 13:30:39 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-04-03 13:30:39 -0700 |
commit | 8f9a2e653dedcabd7f1932e73e73e15c940f3d92 (patch) | |
tree | 8434854c544211a067598086304feaf16b0d5b1b | |
parent | f4f273f6eb1c62d0162df8795933d63b85ce1334 (diff) | |
download | memcached-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.c | 2 |
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; } |