Don't exit too quickly when reporting an exception.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 9 Sep 2012 13:12:02 +0000 (15:12 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 9 Sep 2012 13:12:02 +0000 (15:12 +0200)
commit2393a58ddcbe170931d69a66e7107341b1e5cf9c
tree53a513552a43a92e1b894d4f11f5d595668c6164
parent7c038b2fd75c87c84cc79185ddee17a570ffa8c7
Don't exit too quickly when reporting an exception.

MWExceptionHander::handle() already exist at the end of its task,
so there's no need to have other die() calls.

There were some problems with that:
- wfLogProfilingData() was only called after reporting some exception
- MWExceptionHandler::report() was not consistent between web and
  command-linerequests
- MWException::reportHTML() was also not consistent when using the
  OutputPage object or not

Also removed MWExceptionHander::escapeEchoAndDie() since it's not needed anymore.

Change-Id: Ibb679c425ef0271a65f623c7b8541ec9bec70eb0
includes/Exception.php