aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/store/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/src/store/index.js')
-rw-r--r--settings/src/store/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/src/store/index.js b/settings/src/store/index.js
index bf08e4aa390..43de49e2030 100644
--- a/settings/src/store/index.js
+++ b/settings/src/store/index.js
@@ -10,8 +10,9 @@ const debug = process.env.NODE_ENV !== 'production';
const mutations = {
API_FAILURE(state, error) {
- console.log(state, error);
OC.Notification.showTemporary(t('settings','An error occured during the request. Unable to proceed.'));
+ // throw to raise exception of the promise and allow a `.then` in the Vue methods
+ throw error;
}
};