Instead of throwing an exception on the PHP side, log an error on the JS
side.
Change-Id: I673f59d936e48072e78f6b061ac06f37274ded77
self::inDebugMode()
);
if ( $js === false ) {
self::inDebugMode()
);
if ( $js === false ) {
'JSON serialization of config data failed. ' .
'This usually means the config data is not valid UTF-8.'
);
'JSON serialization of config data failed. ' .
'This usually means the config data is not valid UTF-8.'
);
+ MWExceptionHandler::logException( $e );
+ $js = Xml::encodeJsCall( 'mw.log.error', [ $e->__toString() ] );