File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ function setupModuleLoader(window) {
70
70
}
71
71
return ensure ( modules , name , function ( ) {
72
72
if ( ! requires ) {
73
- throw minErr ( '$injector' ) ( 'nomod' , "Module '{0}' is not available! You either misspelled the module name or forgot to load it." , name ) ;
73
+ throw minErr ( '$injector' ) ( 'nomod' , "Module '{0}' is not available! You either misspelled the module name " +
74
+ "or forgot to load it. If registering a module ensure that you specify the dependencies as the second " +
75
+ "argument." , name ) ;
74
76
}
75
77
76
78
/** @type {!Array.<Array.<*>> } */
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ describe('module loader', function() {
68
68
it ( 'should complain of no module' , function ( ) {
69
69
expect ( function ( ) {
70
70
window . angular . module ( 'dontExist' ) ;
71
- } ) . toThrow ( "[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name or forgot to load it." ) ;
71
+ } ) . toThrow ( "[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name " +
72
+ "or forgot to load it. If registering a module ensure that you specify the dependencies as the second " +
73
+ "argument." ) ;
72
74
} ) ;
73
75
} ) ;
You can’t perform that action at this time.
0 commit comments