summaryrefslogtreecommitdiff
path: root/src/l_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/l_log.c')
-rw-r--r--src/l_log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/l_log.c b/src/l_log.c
index fa587b1..d3319cb 100644
--- a/src/l_log.c
+++ b/src/l_log.c
@@ -66,11 +66,13 @@ static int l_log_print(lua_State *L)
else if(!strncmp("DEBUG", prio_str, 6))
prio = DEBUG;
else {
-// this is an error ...
+ lua_pushstring(L, "invalid log priority");
+ lua_error(L);
}
}
else {
-// thist is an error as well
+ lua_pushstring(L, "invalid log priority");
+ lua_error(L);
}
log_printf(prio, "lua: %s", luaL_checklstring(L, 2, NULL));