From 80b3d28f4a9e518bf40b35f786199919180bfcd4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Dec 1997 11:50:08 -0200 Subject: details (mainly error messages) --- liolib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 22668404..4befcfa6 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.7 1997/11/27 15:59:44 roberto Exp roberto $ +** $Id: liolib.c,v 1.8 1997/11/28 12:40:37 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -28,7 +28,7 @@ #define LC_MONETARY 0 #define LC_NUMERIC 0 #define LC_TIME 0 -#define strerror(e) "O.S. is unable to define the error" +#define strerror(e) "(no error message provided by operating system)" #endif @@ -72,7 +72,7 @@ static int ishandler (lua_Object f) { if (lua_isuserdata(f)) { if (lua_tag(f) == gettag(CLOSEDTAG)) - lua_error("trying to access a closed file"); + lua_error("cannot access a closed file"); return lua_tag(f) == gettag(IOTAG); } else return 0; @@ -82,7 +82,7 @@ static FILE *getfile (char *name) { lua_Object f = lua_getglobal(name); if (!ishandler(f)) - luaL_verror("global variable %.50s is not a file handle", name); + luaL_verror("global variable `%.50s' is not a file handle", name); return lua_getuserdata(f); } -- cgit v1.2.3-55-g6feb