mozilla/browserid — pull request #2827 by shane-tomlinson (2012-12-06 12:14:36+00:00)
Title: Make sure *all* errors are reported.

@6a68 - mind reviewing?

I tried using vows_process.on('uncaughtException', callback) but I was never getting the message. Looking at the vows code, they have an uncaughtException handler which prints the results - could this be masking the parent process from receiving this message?

1) the vows JSON reporter reports exceptions differently to passing results. The results aggregator must account for this or else some failures are not counted.
2) If a test has an asynchronous exception, the JSON reporter never gets a record of the error. Instead, errors messages must be fetched from stderr and reported approrpriately.

fixes #2745