mozilla/kumascript — pull request #1 by lmorchard (2012-03-09 21:26:28+00:00)
Title: Bug 730708 trap and report errors

I may end up merging this myself, but I wanted to at least start trying to change to the same PR and review process we use on mozilla/kuma

Long story short, this code:

1. traps exceptions in lots places where they weren't trapped before
2. wraps those exceptions in objects, which describe where they happened in the process
3. the wrapped errors are turned into log messages that are sent via headers in the kumascript HTTP response
4. [bug 733831][] will unpack those log messages on the kuma side and display them in a useful way.

[bug 733831]: https://bugzilla.mozilla.org/show_bug.cgi?id=733831

Also, this involves an update of the pegjs package used to parse kuma wiki documents. I'm not entirely happy with that, since it's a pre-release. But, it's the first release that supplies the character position where a macro was parsed, thus offering some context to kumascript macro errors.