aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lauxlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 8326f384..3dcdfa89 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.176 2008/01/17 16:24:30 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.177 2008/06/12 14:37:27 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -43,8 +43,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) {
43 if (strcmp(ar.namewhat, "method") == 0) { 43 if (strcmp(ar.namewhat, "method") == 0) {
44 narg--; /* do not count `self' */ 44 narg--; /* do not count `self' */
45 if (narg == 0) /* error is in the self argument itself? */ 45 if (narg == 0) /* error is in the self argument itself? */
46 return luaL_error(L, "calling " LUA_QS " on bad self (%s)", 46 return luaL_error(L, "calling " LUA_QS " on bad self", ar.name);
47 ar.name, extramsg);
48 } 47 }
49 if (ar.name == NULL) 48 if (ar.name == NULL)
50 ar.name = "?"; 49 ar.name = "?";