chore: Fix sentry issues (#4863)
Fix sentry issues. Fixes #4815, #4814, #4811, #4809
This commit is contained in:
@@ -156,7 +156,7 @@ export default {
|
||||
await this.$store.dispatch('inboxes/updateInboxIMAP', payload);
|
||||
this.showAlert(this.$t('INBOX_MGMT.IMAP.EDIT.SUCCESS_MESSAGE'));
|
||||
} catch (error) {
|
||||
this.showAlert(this.$t('INBOX_MGMT.IMAP.EDIT.ERROR_MESSAGE'));
|
||||
this.showAlert(error.message);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -216,7 +216,11 @@ export const actions = {
|
||||
commit(types.default.SET_INBOXES_UI_FLAG, {
|
||||
isUpdatingIMAP: false,
|
||||
});
|
||||
throw new Error(error);
|
||||
if (error.response?.data?.message) {
|
||||
throw new Error(error.response?.data?.message);
|
||||
} else {
|
||||
throw new Error(error);
|
||||
}
|
||||
}
|
||||
},
|
||||
updateInboxSMTP: async (
|
||||
|
||||
Reference in New Issue
Block a user