From 186d57694bc7aa9b8e96a8df00ad14747bb36b06 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Fri, 7 Jul 2017 11:48:34 -0400 Subject: [PATCH] Dont swollow abort errors Fixes #27 --- addon/mixins/model.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addon/mixins/model.js b/addon/mixins/model.js index a61eeed..3b2a010 100644 --- a/addon/mixins/model.js +++ b/addon/mixins/model.js @@ -62,13 +62,7 @@ export default Ember.Mixin.create({ var value = this.reloadRelationship(propertyName); //return the promise, clearing the query params and ajax options properties - return value.catch(function (error) { - if (error instanceof DS.AbortError) { - //ignore aborted requests - return; - } - throw error; - }).finally(function () { + return value.finally(function () { if (self.get(_queryIdPropertyName) !== currentQueryId) { //don't clear parameters if they've been set by another request return;