Improve mg.onerror
- Log unexpected errors from mg.onerror handlers
- Provide mg.cry so custom handles can reproduce default behavior
Improve mg.include and mg.onerror
- 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
Added http_error() to struct mg_callbacks
Updated readme
Updated readme