Fix api error

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-05-22 10:33:48 +02:00
parent 16af12e0a0
commit 760b01e8db
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 0 additions and 2 deletions

View File

@ -12,9 +12,7 @@ const mutations = {
API_FAILURE(state, error) {
let message = error.error.response.data.ocs.meta.message;
OC.Notification.showHtml(t('settings','An error occured during the request. Unable to proceed.')+'<br>'+message, {timeout: 7});
// throw to raise exception of the promise and allow a `.then` in the Vue methods
console.log(state, error);
throw new Error(error);
}
};