Is there a way to show the old error messages along with the new?

189 views
Skip to first unread message

Michael Pateras

unread,
Jan 28, 2014, 2:45:32 PM1/28/14
to ang...@googlegroups.com
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:


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.



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.

Jeff Hubbard

unread,
Jan 28, 2014, 2:52:05 PM1/28/14
to ang...@googlegroups.com
Use the non-minified file. The minified file removes error messages for file size reasons.

Michael Pateras

unread,
Jan 28, 2014, 2:53:22 PM1/28/14
to ang...@googlegroups.com
Excellent. Thank you!


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/qj79fhBLa0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages