diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-03-09 15:08:22 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-03-09 15:08:22 -0300 |
| commit | 44a9bd6a8cb63adeb66537eacf56f45c91a318b6 (patch) | |
| tree | 63371912f08abb36d8fc334d427369e7bd290167 | |
| parent | 69ea087dff1daba25a2000dfb8f1883c17545b7a (diff) | |
| download | lua-44a9bd6a8cb63adeb66537eacf56f45c91a318b6.tar.gz lua-44a9bd6a8cb63adeb66537eacf56f45c91a318b6.tar.bz2 lua-44a9bd6a8cb63adeb66537eacf56f45c91a318b6.zip | |
detail
| -rw-r--r-- | loslib.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loslib.c,v 1.16 2005/12/22 16:19:56 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.17 2006/01/27 13:54:31 roberto Exp roberto $ |
| 3 | ** Standard Operating System library | 3 | ** Standard Operating System library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -28,10 +28,7 @@ static int os_pushresult (lua_State *L, int i, const char *filename) { | |||
| 28 | } | 28 | } |
| 29 | else { | 29 | else { |
| 30 | lua_pushnil(L); | 30 | lua_pushnil(L); |
| 31 | if (filename) | 31 | lua_pushfstring(L, "%s: %s", filename, strerror(en)); |
| 32 | lua_pushfstring(L, "%s: %s", filename, strerror(en)); | ||
| 33 | else | ||
| 34 | lua_pushfstring(L, "%s", strerror(en)); | ||
| 35 | lua_pushinteger(L, en); | 32 | lua_pushinteger(L, en); |
| 36 | return 3; | 33 | return 3; |
| 37 | } | 34 | } |
