nodemcu-firmware: Adding an error traceback to panic()

As part of my LCD patch, I also reimplemented the Lua error traceback, so that by default an error give a proper Lua stack traceback, rather the a one-line goodbye. However, the RTS still has a catch-all panic() to trap any unprotected error calls. This puts out a very unhelpful error message: PANIC: unprotected error in call to Lua API (<Lua routine name>). It just struck me that it would be better to provide a proper Lua traceback. Is this a good idea?

This is a fairly easy change.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 27 (8 by maintainers)

Most upvoted comments

Just out of interest I am doing this as part of the Lua 5.1 to Lua 5.3 alignment so we can let this close.