mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
TESTS: Integration tests for badge pages
This commit is contained in:
@@ -8,8 +8,15 @@ var ApplicationRoute = Em.Route.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
var exceptionController = this.controllerFor('exception');
|
||||
Em.warn(err);
|
||||
var exceptionController = this.controllerFor('exception'),
|
||||
errorString = err.toString();
|
||||
if (err.statusText) {
|
||||
errorString = err.statusText;
|
||||
}
|
||||
var c = window.console;
|
||||
if (c && c.error) {
|
||||
c.error(errorString);
|
||||
}
|
||||
exceptionController.setProperties({ lastTransition: transition, thrown: err });
|
||||
|
||||
this.intermediateTransitionTo('exception');
|
||||
|
||||
Reference in New Issue
Block a user