From c2bb9abceceef125554595e23b7cc18ad3555c7c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 May 2005 18:19:00 -0300 Subject: better quotes for strings in error messages --- loslib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loslib.c') diff --git a/loslib.c b/loslib.c index 034acd5f..89aa794b 100644 --- a/loslib.c +++ b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.6 2005/03/09 16:28:07 roberto Exp roberto $ +** $Id: loslib.c,v 1.7 2005/03/18 18:02:04 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -113,7 +113,7 @@ static int getfield (lua_State *L, const char *key, int d) { res = (int)lua_tointeger(L, -1); else { if (d < 0) - return luaL_error(L, "field `%s' missing in date table", key); + return luaL_error(L, "field " LUA_SM " missing in date table", key); res = d; } lua_pop(L, 1); @@ -151,7 +151,7 @@ static int io_date (lua_State *L) { if (strftime(b, sizeof(b), s, stm)) lua_pushstring(L, b); else - return luaL_error(L, "`date' format too long"); + return luaL_error(L, LUA_SM " format too long", "date"); } return 1; } -- cgit v1.2.3-55-g6feb