chore: Fix sentry issues (#4863)

Fix sentry issues.

Fixes #4815, #4814, #4811, #4809
This commit is contained in:
Aswin Dev P.S
2022-06-15 16:20:19 +05:30
committed by GitHub
parent 067c905329
commit 9015d83679
6 changed files with 51 additions and 12 deletions

View File

@@ -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);
}
},
},

View File

@@ -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 (