From e82d780c2e489aa136700e975ecc0592ad8ee9b1 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 11 Jul 2013 12:15:58 -0700 Subject: fix($injector): improve $injector:nomod error message Closes #2695 --- test/loaderSpec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/loaderSpec.js') diff --git a/test/loaderSpec.js b/test/loaderSpec.js index ce98c50a..73e94215 100644 --- a/test/loaderSpec.js +++ b/test/loaderSpec.js @@ -68,6 +68,8 @@ describe('module loader', function() { it('should complain of no module', function() { expect(function() { window.angular.module('dontExist'); - }).toThrow("[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name or forgot to load it."); + }).toThrow("[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name " + + "or forgot to load it. If registering a module ensure that you specify the dependencies as the second " + + "argument."); }); }); -- cgit v1.2.3