Commit 63b86a4a authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIX: more generioc error handling

parent 6d4f12e3
Pipeline #117490 passed with stages
in 4 minutes and 52 seconds
......@@ -236,8 +236,8 @@ async function init() {
window.console.debug(e.response)
commit('set_transaction_result', {
type: 'error',
error: e.response.data.exception,
uuid: state.ta_list[APIUtil.getAPIErrorIndexFromDBException(e.response.data.exception)].uuid
error: 'exception' in e.response.data ? e.response.data.exception : e.response.data,
uuid: 'exception' in e.response.data ? state.ta_list[APIUtil.getAPIErrorIndexFromDBException(e.response.data.exception)].uuid : null
})
} finally {
commit('setTransactionBusy', false)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment