Nick Jenkins wrote:
Just wondering what the new Exceptions look like, so that I can grep for them for when testing.
Previously I would grep for the string "wfDebugDieBacktrace", and if that occurred in the output, it was a pretty good bet that something went wrong; Could I for example now grep the output for the string "Exception"?
If I put
throw new MWException('hello');
in index.php, it produces:
<p>hello</p><p>Backtrace:</p><p>#0 {main}</p>
with a variable header and footer. You could search for "<p>Backtrace:</p><p>#0". In command line mode, it will instead be "\nBacktrace:\n#0".
-- Tim Starling