Skip to content
Snippets Groups Projects
Commit 63b86a4a authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: more generioc error handling

parent 6d4f12e3
Branches
No related tags found
No related merge requests found
Pipeline #274884 passed with warnings
...@@ -236,8 +236,8 @@ async function init() { ...@@ -236,8 +236,8 @@ async function init() {
window.console.debug(e.response) window.console.debug(e.response)
commit('set_transaction_result', { commit('set_transaction_result', {
type: 'error', type: 'error',
error: e.response.data.exception, error: 'exception' in e.response.data ? e.response.data.exception : e.response.data,
uuid: state.ta_list[APIUtil.getAPIErrorIndexFromDBException(e.response.data.exception)].uuid uuid: 'exception' in e.response.data ? state.ta_list[APIUtil.getAPIErrorIndexFromDBException(e.response.data.exception)].uuid : null
}) })
} finally { } finally {
commit('setTransactionBusy', false) commit('setTransactionBusy', false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment