From ca54eca1954a5014ede441ed6322eb5820bae4f6 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 9 Jul 2023 21:43:04 +1200 Subject: [PATCH] Use luaL_argerror over luaL_error in cl.parseopts --- lcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl.c b/lcl.c index 34e76e6..ab783c6 100644 --- a/lcl.c +++ b/lcl.c @@ -240,7 +240,7 @@ cl_parseopts(lua_State *L) } if (optstring[0] == ':') - return luaL_error(L, "option string may not start with a colon (:)"); + return luaL_argerror(L, 2, "option string must not start with a colon (:)"); strprepend(optstring, ":");