Commit f88f044b authored by gj4210's avatar gj4210 👽 Committed by janis.streib
Browse files

ADD: Request & payload in Error output

parent ee2376bb
......@@ -133,8 +133,9 @@ export default {
})
EventBus.$on('error', (payload) => {
window.console.debug('evbus trigger')
window.console.debug(payload)
window.console.debug(JSON.parse(JSON.stringify(payload))) // yikes
if ('response' in payload) {
window.console.debug('has response')
if (payload.response.status === 401) {
return
}
......@@ -145,6 +146,9 @@ export default {
} else {
self.global_error = payload
}
if ('config' in payload && 'url' in payload.config && 'data' in payload.config) {
self.global_error.request = { url: payload.config.url, data: JSON.parse(payload.config.data) }
}
self.global_error.route_info = { path: this.$route.path, redir_from: this.$route.redirectedFrom }
self.global_error.session_info = {
browser: {
......@@ -254,7 +258,8 @@ export default {
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
user-select: none;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
</style>
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