Use the non-minified file. The minified file removes error messages for 
file size reasons.

On Tuesday, January 28, 2014 11:45:32 AM UTC-8, Michael Pateras wrote:
>
> The new error pages are nice, but often the problem is immediately 
> apparent from the simple message we used to get, and it's a pain to bring 
> up the new page just to see it.
>
> Example:
>
> Old error message:
> Uncaught ReferenceError: MyController is not defined from MyApp
>
> That tells me everything I need to know.
>
> New message:
>
> Uncaught Error: [$injector:modulerr] 
> http://errors.angularjs.org/1.2.8/$injector/modulerr?p0=MyApp&p1=Re…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A17%3A215<http://errors.angularjs.org/1.2.8/$injector/modulerr?p0=appMinis-task&p1=ReferenceError%3A%20TaskGroupsController%20is%20not%20defined%0A%20%20%20%20at%20http%3A%2F%2Flocaltask%3A5555%2Fjs%2FangularConfig.js%3A21%3A15%0A%20%20%20%20at%20Object.d%20%5Bas%20invoke%5D%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A30%3A452)%0A%20%20%20%20at%20https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A29%3A302%0A%20%20%20%20at%20Array.forEach%20(native)%0A%20%20%20%20at%20q%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A7%3A274)%0A%20%20%20%20at%20e%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A29%3A115)%0A%20%20%20%20at%20%24b%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A32%3A232)%0A%20%20%20%20at%20Zb.c%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A17%3A431)%0A%20%20%20%20at%20Zb%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A18%3A140)%0A%20%20%20%20at%20Tc%20(https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.8%2Fangular.min.js%3A17%3A215>
> ) 
>
> That tells me nothing. If I click on it, I get all of this:
>
> Module Error
> error in component $injector
>
> Failed to instantiate module MyApp due to:
> ReferenceError: MyController is not defined
>     at http://localhost:3000/js/angularConfig.js:21:15
>     at Object.d [as invoke] 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:30:452)
>     at 
> https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:29:302
>     at Array.forEach (native)
>     at q 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:7:274)
>     at e 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:29:115)
>     at $b 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:32:232)
>     at Zb.c 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:17:431)
>     at Zb 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:18:140)
>     at Tc 
> (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:17:215
>
> Description
>
> This error occurs when a module fails to load due to some exception. The 
> error message above should provide additional context.
>
> In AngularJS 1.2.0 and later, ngRoute has been moved to its own module. 
> If you are getting this error after upgrading to 1.2.x, be sure that 
> you've installed ngRoute <http://docs.angularjs.org/api/ngRoute>.
>
>
>
> That's all very useful, and I like that it's available, but in this 
> instance, I'd rather have just seen the old message, because it's all I 
> needed.
>
>
> Is it possible to enable both the old error messages, alongside the new? 
> That way I get the simple message, and if I need more, I can click to get 
> it.
>
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to