aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/llthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/llthread.c b/src/llthread.c
index 66efe7c..a3b3216 100644
--- a/src/llthread.c
+++ b/src/llthread.c
@@ -132,6 +132,8 @@ static int fail(lua_State *L, const char *msg){
132void llthread_log(lua_State *L, const char *hdr, const char *msg){ 132void llthread_log(lua_State *L, const char *hdr, const char *msg){
133 int top = lua_gettop(L); 133 int top = lua_gettop(L);
134 lua_rawgetp(L, LUA_REGISTRYINDEX, LLTHREAD_LOGGER_HOLDER); 134 lua_rawgetp(L, LUA_REGISTRYINDEX, LLTHREAD_LOGGER_HOLDER);
135 if (!msg)
136 msg = "(no error message)";
135 if(lua_isnil(L, -1)){ 137 if(lua_isnil(L, -1)){
136 lua_pop(L, 1); 138 lua_pop(L, 1);
137 fputs(hdr, stderr); 139 fputs(hdr, stderr);