summaryrefslogtreecommitdiffstats
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.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/src/store/index.js b/settings/src/store/index.js
index 4332ece33e4..aa64b245396 100644
--- a/settings/src/store/index.js
+++ b/settings/src/store/index.js
@@ -10,7 +10,11 @@ const debug = process.env.NODE_ENV !== 'production';
const mutations = {
API_FAILURE(state, error) {
- let message = error.error.response.data.ocs.meta.message;
+ try {
+ let message = error.error.response.data.ocs.meta.message;
+ } catch(e) {
+ let message = error;
+ }
OC.Notification.showHtml(t('settings','An error occured during the request. Unable to proceed.')+'<br>'+message, {timeout: 7});
console.log(state, error);
}