Bug: Fix error message when existing agent email is reused for a new agent (#538)

Co-authored-by: Pranav Raj S <pranavrajs@gmail.com>
This commit is contained in:
ghosteathuman
2020-02-22 21:36:16 +08:00
committed by GitHub
parent 6340eb3ae2
commit 67f4f69e8a
4 changed files with 10 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ export const actions = {
commit(types.default.SET_AGENT_CREATING_STATUS, false);
} catch (error) {
commit(types.default.SET_AGENT_CREATING_STATUS, false);
throw new Error(error);
throw error;
}
},
update: async ({ commit }, { id, ...agentParams }) => {