exception: Prefix error type in front of error message
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 16 Nov 2014 15:08:29 +0000 (16:08 +0100)
committerBryanDavis <bdavis@wikimedia.org>
Mon, 24 Nov 2014 18:23:09 +0000 (18:23 +0000)
commit164ac414fadd35ee13b7f9d0210058e2d0e89a50
treeb7680b188918056b2ebd5e709e99afe43e1b3908
parentf051a6fe44632005379eaadfa7ad99d86dfe79b4
exception: Prefix error type in front of error message

Follows-up 399ba2fecf which didn't include any translation of the error
type in the logged message (e.g. "PHP Notice" or "PHP Warning").

Before
 Error from line 2130 of mediawiki/includes/OutputPage.php: Undefined variable: bar
 Error from line 2130 of mediawiki/includes/OutputPage.php: strpos() expects at le..

After
 Error from line 2130 of mediawiki/includes/OutputPage.php: PHP Notice: Undefined variable: bar
 Error from line 2130 of mediawiki/includes/OutputPage.php: PHP Warning: strpos() expects at le..

Based on the log formatter in php
 https://github.com/php/php-src/blob/0f5858e3a328/main/main.c#L1086-L1119

Change-Id: I52f98e52caa64955050ed73e1acbc78b1116a9fd
includes/exception/MWExceptionHandler.php