summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShmuel Zeigerman <solomuz0@gmail.com>2014-08-06 02:14:56 +0300
committerShmuel Zeigerman <solomuz0@gmail.com>2014-08-06 02:14:56 +0300
commit896b84505311c5bf08d8f743403de65e47c46437 (patch)
treebba1f7258f786ddc744b5517dbeb016eca1ab95b
parentd55af4735715605f99fd112574e776ddf1f1a312 (diff)
downloadlrexlib-896b84505311c5bf08d8f743403de65e47c46437.tar.gz
Make error messages uniform.
-rw-r--r--src/algo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algo.h b/src/algo.h
index 47e8f65..bff1f67 100644
--- a/src/algo.h
+++ b/src/algo.h
@@ -136,9 +136,9 @@ static void check_subject (lua_State *L, int pos, TArgExec *argE)
lua_pop (L, 1);
#if LUA_VERSION_NUM == 501
if (!luaL_callmeta (L, pos, "__len"))
- luaL_argerror (L, pos, "the subject has no valid __len metamethod");
+ luaL_argerror (L, pos, "subject has no valid __len metamethod");
if (lua_type (L, -1) != LUA_TNUMBER)
- luaL_argerror (L, pos, "object length is not a number");
+ luaL_argerror (L, pos, "subject's length is not a number");
argE->textlen = lua_tointeger (L, -1);
lua_pop (L, 1);
#else