mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
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) {
|
||||
this.controllerFor('user-activity').set('model', user);
|
||||
this.controllerFor('user').set('pmView', null);
|
||||
|
||||
// Bring up a draft
|
||||
|
@ -1,5 +1,7 @@
|
||||
export default Em.Route.extend({
|
||||
redirect: function() {
|
||||
this.replaceWith('userActivity', this.modelFor('user'));
|
||||
|
||||
beforeModel: function() {
|
||||
return this.replaceWith('userActivity');
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user