Changing console.log(e) to a throw. console.log makes it go toString() which is prett...
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 18 May 2011 20:31:28 +0000 (20:31 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 18 May 2011 20:31:28 +0000 (20:31 +0000)
resources/mediawiki/mediawiki.js

index 0533baf..de7a2cd 100644 (file)
@@ -509,8 +509,8 @@ window.mediaWiki = new ( function( $ ) {
                                // 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( _fn + 'Exception thrown by ' + module + ': ' + e.message );
-                                       console.log( e );
                                }
+                               throw e;
                                registry[module].state = 'error';
                        }
                }