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:
parent
b4f4147195
commit
ee21fb30d7
@ -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);
|
||||
});
|
||||
|
||||
};
|
||||
|
@ -232,7 +232,7 @@ OC.Contacts = OC.Contacts || {};
|
||||
})
|
||||
.fail(function(response) {
|
||||
console.warn('Request Failed:', response.message);
|
||||
defer.reject();
|
||||
defer.reject(response);
|
||||
});
|
||||
return defer;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user