Commit 0b8f220e authored by Janis Streib's avatar Janis Streib

FIX: show response data if availibale

parent 4adafff1
Pipeline #118665 canceled with stages
......@@ -307,7 +307,11 @@ async function init() {
}
window.addEventListener('unhandledrejection', function (event) {
window.console.debug('unhanldedrejection handler triggered')
EventBus.$emit('error', event.reason)
if ('response' in event.reason) {
EventBus.$emit('error', event.reason.response.data)
} else {
EventBus.$emit('error', event.reason)
}
})
Axios.interceptors.response.use(
function (response) {
......
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