diff --git a/js/contacts.js b/js/contacts.js index 1c140733..27ca0dbe 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -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); }); }; diff --git a/js/storage.js b/js/storage.js index 38bfd2e8..668c8f44 100644 --- a/js/storage.js +++ b/js/storage.js @@ -232,7 +232,7 @@ OC.Contacts = OC.Contacts || {}; }) .fail(function(response) { console.warn('Request Failed:', response.message); - defer.reject(); + defer.reject(response); }); return defer; };