• 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
Name
Last commit
Last update
build Loading commit data...
examples Loading commit data...
test Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
UserManual.md Loading commit data...
main.c Loading commit data...
mongoose.c Loading commit data...
mongoose.h Loading commit data...