• abadc0de's avatar
    Added support for lua error handling and includes · 800517ac
    abadc0de authored
    - Added mg.onerror, mg.include, mg.redirect
    - mg.onerror, if overridden, lets the user trap syntax errors and
      other loadbuffer errors, and dump stack traces and debug info
      for uncaught runtime errors.
    - Log unexpected errors from mg.onerror handlers
    - Provide mg.cry so custom handlers can reproduce default behavior
    - Call mg.onerror handler before unwinding stack
    - If mg.onerror returns non-0, stop loading chunks
    - Included pages stop parent page processing if mg.onerror returns non-zero
    - Included pages don't sent HTTP errors, they throw lua errors
    800517ac
mongoose.c 170 KB