lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-10-20 1:55 GMT+02:00 Andrew Starks <andrew.starks@trms.com>:

> I've got Mega Bug, right now. I can't figure out how, but I've managed to
> create a situation where an error generated inside of a pcall is not
> returning to the pcall and instead of showing the error message, it gives
> this error, with no line number, file name, etc. I'm guessing it's some
> Frankenhack side-effect but I've been at it for a few hours and wrapping
> error doesn't have any effect.

You could always invest a few minutes in making an appropriate change
to the following code in lbaselib.c and rebuilding. Just this once, mind. :-)

  if (lua_isstring(L, 1) && level > 0) {  /* add extra information? */
    luaL_where(L, level);
    lua_pushvalue(L, 1);
    lua_concat(L, 2);
  }