diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-16 10:10:14 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-16 10:10:14 -0300 |
| commit | 168a865e6054348795b3f88c0effce153541ae7a (patch) | |
| tree | 45864e320a4589d4809ab5052fa8011f92a143e6 | |
| parent | 15c17c24facb6d7e6f837b87927a54a40a54aa36 (diff) | |
| download | lua-168a865e6054348795b3f88c0effce153541ae7a.tar.gz lua-168a865e6054348795b3f88c0effce153541ae7a.tar.bz2 lua-168a865e6054348795b3f88c0effce153541ae7a.zip | |
more appropriate error message for "date"
| -rw-r--r-- | iolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Input/output library to LUA | 3 | ** Input/output library to LUA |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_iolib="$Id: iolib.c,v 1.34 1996/02/09 19:02:30 roberto Exp roberto $"; | 6 | char *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 | /* |
