mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
fix: Show error messages from response (#10173)
This PR fixes the issue where proper error messages from the backend were not displayed when an email already exists in the system during a profile update, or when a phone number is already taken for Twilio during the creation of a new account. Fixes: https://linear.app/chatwoot/issue/CW-3560/prod-customer-facing-issue-updating-email
This commit is contained in:
@@ -183,7 +183,7 @@ export const actions = {
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
commit(types.default.SET_INBOXES_UI_FLAG, { isCreating: false });
|
||||
throw new Error(error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
createFBChannel: async ({ commit }, params) => {
|
||||
|
||||
Reference in New Issue
Block a user