1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Also return response on failure in js Storage

This commit is contained in:
Thomas Tanghus 2014-03-21 14:24:36 +01:00
parent b4f4147195
commit ee21fb30d7
2 changed files with 2 additions and 2 deletions

View File

@ -2604,7 +2604,7 @@ OC.Contacts = OC.Contacts || {};
})
.fail(function(response) {
console.warn('Request Failed:', response.message);
defer.reject({error: true, message: response.message});
$(document).trigger('status.contacts.error', response);
});
};

View File

@ -232,7 +232,7 @@ OC.Contacts = OC.Contacts || {};
})
.fail(function(response) {
console.warn('Request Failed:', response.message);
defer.reject();
defer.reject(response);
});
return defer;
};