Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -616,7 +616,7 @@ |
617 | 617 | for ( var j = 0; j < jobs.length; j++ ) { |
618 | 618 | if ( $.inArray( module, jobs[j].dependencies ) !== -1 ) { |
619 | 619 | if ( $.isFunction( jobs[j].error ) ) { |
620 | | - jobs[j].error(); |
| 620 | + jobs[j].error( e, module ); |
621 | 621 | } |
622 | 622 | jobs.splice( j, 1 ); |
623 | 623 | j--; |
— | — | @@ -1053,7 +1053,8 @@ |
1054 | 1054 | // If any dependencies have errors execute error immediately |
1055 | 1055 | else if ( filter( ['error'], dependencies ).length ) { |
1056 | 1056 | if ( $.isFunction( error ) ) { |
1057 | | - error(); |
| 1057 | + error( new Error( 'one or more dependencies have state "error"' ), |
| 1058 | + dependencies ); |
1058 | 1059 | } |
1059 | 1060 | } |
1060 | 1061 | // Since some dependencies are not yet ready, queue up a request |