diff options
Diffstat (limited to 'ldebug.c')
| -rw-r--r-- | ldebug.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -832,6 +832,10 @@ l_noret luaG_errormsg (lua_State *L) { | |||
| 832 | L->top.p++; /* assume EXTRA_STACK */ | 832 | L->top.p++; /* assume EXTRA_STACK */ |
| 833 | luaD_callnoyield(L, L->top.p - 2, 1); /* call it */ | 833 | luaD_callnoyield(L, L->top.p - 2, 1); /* call it */ |
| 834 | } | 834 | } |
| 835 | if (ttisnil(s2v(L->top.p - 1))) { /* error object is nil? */ | ||
| 836 | /* change it to a proper message */ | ||
| 837 | setsvalue2s(L, L->top.p - 1, luaS_newliteral(L, "<no error object>")); | ||
| 838 | } | ||
| 835 | luaD_throw(L, LUA_ERRRUN); | 839 | luaD_throw(L, LUA_ERRRUN); |
| 836 | } | 840 | } |
| 837 | 841 | ||
