TWEAK: Remove `TransitionAborted` exceptions from logging. They are

apparently normal when you abort a router transition and can be ignored.
This commit is contained in:
Robin Ward 2014-08-07 16:52:31 -04:00
parent 7b317c1ad7
commit 39c7101c4b
3 changed files with 8 additions and 3 deletions

View File

@ -4,7 +4,6 @@ export default Discourse.Route.extend({
},
setupController: function(controller, user) {
this.controllerFor('user-activity').set('model', user);
this.controllerFor('user').set('pmView', null);
// Bring up a draft

View File

@ -1,5 +1,7 @@
export default Em.Route.extend({
redirect: function() {
this.replaceWith('userActivity', this.modelFor('user'));
beforeModel: function() {
return this.replaceWith('userActivity');
}
});

View File

@ -9,6 +9,10 @@
<script>
Ember.RSVP.configure('onerror', function(e) {
// Ignore TransitionAborted exceptions that bubble up
if (e && e.message === "TransitionAborted") { return; }
<% if Rails.env.development? %>
if (e) {
if (e.message || e.stack) {