diff --git a/src/nhlua.c b/src/nhlua.c index b0addae53..098d74324 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1094,8 +1094,8 @@ const char *fname; llret = luaL_loadbuffer(L, buf, strlen(buf), altfname); if (llret != LUA_OK) { - impossible("luaL_loadbuffer: Error loading %s (errcode %i)", - altfname, llret); + impossible("luaL_loadbuffer: Error loading %s: %s", + altfname, lua_tostring(L, -1)); ret = FALSE; goto give_up; } else {