From 63b86a4ad7d97ef71caddf6ac4691f8183214f70 Mon Sep 17 00:00:00 2001 From: Janis Streib <me@janis-streib.de> Date: Tue, 10 Nov 2020 16:36:21 +0100 Subject: [PATCH] FIX: more generioc error handling --- frontend/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index 347248465..482d9a67e 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -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) -- GitLab