summaryrefslogtreecommitdiff
path: root/iolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-16 10:10:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-16 10:10:14 -0300
commit168a865e6054348795b3f88c0effce153541ae7a (patch)
tree45864e320a4589d4809ab5052fa8011f92a143e6 /iolib.c
parent15c17c24facb6d7e6f837b87927a54a40a54aa36 (diff)
downloadlua-168a865e6054348795b3f88c0effce153541ae7a.tar.gz
lua-168a865e6054348795b3f88c0effce153541ae7a.tar.bz2
lua-168a865e6054348795b3f88c0effce153541ae7a.zip
more appropriate error message for "date"
Diffstat (limited to '')
-rw-r--r--iolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iolib.c b/iolib.c
index 38b6f318..2d805010 100644
--- a/iolib.c
+++ b/iolib.c
@@ -3,7 +3,7 @@
3** Input/output library to LUA 3** Input/output library to LUA
4*/ 4*/
5 5
6char *rcs_iolib="$Id: iolib.c,v 1.34 1996/02/09 19:02:30 roberto Exp roberto $"; 6char *rcs_iolib="$Id: iolib.c,v 1.35 1996/02/09 19:35:23 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <ctype.h> 9#include <ctype.h>
@@ -520,7 +520,7 @@ static void io_date (void)
520 if (strftime(b,sizeof(b),s,tm)) 520 if (strftime(b,sizeof(b),s,tm))
521 lua_pushstring(b); 521 lua_pushstring(b);
522 else 522 else
523 lua_error("`date' format too long"); 523 lua_error("invalid `date' format");
524} 524}
525 525
526/* 526/*