http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88392

Revision: 88392
Author:   krinkle
Date:     2011-05-18 20:31:28 +0000 (Wed, 18 May 2011)
Log Message:
-----------
Changing console.log(e) to a throw. console.log makes it go toString() which is 
pretty much the same as the e.message in the console.log call above it. This 
also made it impossible for QUnit to get it's hand on the actual error. Fixed 
it by moing it outside of the if statement so it can be caught.

Modified Paths:
--------------
    trunk/phase3/resources/mediawiki/mediawiki.js

Modified: trunk/phase3/resources/mediawiki/mediawiki.js
===================================================================
--- trunk/phase3/resources/mediawiki/mediawiki.js       2011-05-18 20:28:44 UTC 
(rev 88391)
+++ trunk/phase3/resources/mediawiki/mediawiki.js       2011-05-18 20:31:28 UTC 
(rev 88392)
@@ -509,8 +509,8 @@
                                // 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';
                        }
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to