mirror of https://github.com/rusefi/lua.git
more appropriate error message for "date"
This commit is contained in:
parent
15c17c24fa
commit
168a865e60
4
iolib.c
4
iolib.c
|
@ -3,7 +3,7 @@
|
||||||
** Input/output library to LUA
|
** Input/output library to LUA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *rcs_iolib="$Id: iolib.c,v 1.34 1996/02/09 19:02:30 roberto Exp roberto $";
|
char *rcs_iolib="$Id: iolib.c,v 1.35 1996/02/09 19:35:23 roberto Exp roberto $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -520,7 +520,7 @@ static void io_date (void)
|
||||||
if (strftime(b,sizeof(b),s,tm))
|
if (strftime(b,sizeof(b),s,tm))
|
||||||
lua_pushstring(b);
|
lua_pushstring(b);
|
||||||
else
|
else
|
||||||
lua_error("`date' format too long");
|
lua_error("invalid `date' format");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue