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:
parent
7b317c1ad7
commit
39c7101c4b
|
@ -4,7 +4,6 @@ export default Discourse.Route.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
setupController: function(controller, user) {
|
setupController: function(controller, user) {
|
||||||
this.controllerFor('user-activity').set('model', user);
|
|
||||||
this.controllerFor('user').set('pmView', null);
|
this.controllerFor('user').set('pmView', null);
|
||||||
|
|
||||||
// Bring up a draft
|
// Bring up a draft
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
export default Em.Route.extend({
|
export default Em.Route.extend({
|
||||||
redirect: function() {
|
|
||||||
this.replaceWith('userActivity', this.modelFor('user'));
|
beforeModel: function() {
|
||||||
|
return this.replaceWith('userActivity');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
Ember.RSVP.configure('onerror', function(e) {
|
Ember.RSVP.configure('onerror', function(e) {
|
||||||
|
|
||||||
|
// Ignore TransitionAborted exceptions that bubble up
|
||||||
|
if (e && e.message === "TransitionAborted") { return; }
|
||||||
|
|
||||||
<% if Rails.env.development? %>
|
<% if Rails.env.development? %>
|
||||||
if (e) {
|
if (e) {
|
||||||
if (e.message || e.stack) {
|
if (e.message || e.stack) {
|
||||||
|
|
Loading…
Reference in New Issue