From afe849c9b45e00f2bd31606aad3d2bb7a38ef5d2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 6 Aug 2008 10:38:32 -0300 Subject: [PATCH] change in error message --- loadlib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loadlib.c b/loadlib.c index e6a51b7e..6457d53d 100644 --- a/loadlib.c +++ b/loadlib.c @@ -1,5 +1,5 @@ /* -** $Id: loadlib.c,v 1.59 2007/12/12 14:36:12 roberto Exp roberto $ +** $Id: loadlib.c,v 1.60 2008/08/05 19:25:42 roberto Exp roberto $ ** Dynamic library loader for Lua ** See Copyright Notice in lua.h ** @@ -524,8 +524,7 @@ static void setfenv (lua_State *L) { if (lua_getstack(L, 1, &ar) == 0 || lua_getinfo(L, "f", &ar) == 0 || /* get calling function */ lua_iscfunction(L, -1)) - luaL_error(L, "function " LUA_QL("module") - " not called from a Lua function"); + luaL_error(L, LUA_QL("module") " not called from a Lua function"); lua_pushvalue(L, -2); /* copy new environment table to top */ lua_setfenv(L, -2); lua_pop(L, 1); /* remove function */