CLI: Make sure we don't exit with 0 when an exception is encountered
authorMarius Hoch <hoo@online.de>
Wed, 4 Oct 2017 16:10:27 +0000 (18:10 +0200)
committerMarius Hoch <hoo@online.de>
Wed, 4 Oct 2017 16:48:18 +0000 (18:48 +0200)
commitecb5408a33d22dcee15bccecb43faf91d943c87a
treea5a6bffec59f04ab52e30fe1052ddc28fb2c0772
parent00c769eb8d7746dfddff525ccc813f276046dea8
CLI: Make sure we don't exit with 0 when an exception is encountered

I registered the additional shutdown function for CLI only
as it shouldn't have effect otherwise.

Bug: T177414
Change-Id: I440d294eef5e307743cfc7f5ab3b531e8c973873
includes/exception/MWExceptionHandler.php