From: Tim Starling Date: Sun, 26 Feb 2012 23:03:45 +0000 (+0000) Subject: Re-add the exception log removed in r88392: unlike Chrome, the current Firebug displa... X-Git-Tag: 1.31.0-rc.0~24494 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=268e016f08c5de6a68c25abf182d0115a6f131d5;p=lhc%2Fweb%2Fwiklou.git Re-add the exception log removed in r88392: unlike Chrome, the current Firebug displays exceptions dumped in this way with full details, including a backtrace --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 4aee9eb737..509d6cacf6 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -784,6 +784,7 @@ var mw = ( function ( $, undefined ) { // and not in debug mode, such as when a symbol that should be global isn't exported if ( window.console && typeof window.console.log === 'function' ) { console.log( 'mw.loader::execute> Exception thrown by ' + module + ': ' + e.message ); + console.log( e ); } registry[module].state = 'error'; }