From 868e34d15cf17d8ebf761faffa9669ff77ed62ee Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 7 Jan 2018 05:50:21 +0100 Subject: degesch: fix a Lua error message --- degesch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 08ffb5e..30fa19b 100644 --- a/degesch.c +++ b/degesch.c @@ -8401,7 +8401,7 @@ lua_plugin_check_utf8 (lua_State *L, int arg) { size_t len; const char *s = luaL_checklstring (L, arg, &len); - luaL_argcheck (L, utf8_validate (s, len), 1, "must be valid UTF-8"); + luaL_argcheck (L, utf8_validate (s, len), arg, "must be valid UTF-8"); return s; } -- cgit v1.2.3-70-g09d2