From 1a553f9199f99bd529c542ef3be60b7a48f4ff2a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 19 Mar 2003 18:16:12 -0300 Subject: better error messages --- lstrlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 7d93422e..e1aee1fd 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.95 2003/03/11 12:24:34 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.96 2003/03/14 18:59:53 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -695,7 +695,7 @@ static int str_format (lua_State *L) { char buff[MAX_ITEM]; /* to store the formatted item */ int hasprecision = 0; if (isdigit(uchar(*strfrmt)) && *(strfrmt+1) == '$') - return luaL_error(L, "obsolete `format' option (d$)"); + return luaL_error(L, "obsolete option (d$) to `format'"); arg++; strfrmt = scanformat(L, strfrmt, form, &hasprecision); switch (*strfrmt++) { @@ -732,7 +732,7 @@ static int str_format (lua_State *L) { } } default: { /* also treat cases `pnLlh' */ - return luaL_error(L, "invalid option in `format'"); + return luaL_error(L, "invalid option to `format'"); } } luaL_addlstring(&b, buff, strlen(buff)); -- cgit v1.2.3-55-g6feb