Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
4adafff1
Commit
4adafff1
authored
Nov 19, 2020
by
janis.streib
🦉
Browse files
ADD: more error handlers
parent
bd16d6a0
Pipeline
#118660
passed with stages
in 12 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/main.js
View file @
4adafff1
...
...
@@ -300,12 +300,15 @@ async function init() {
window
.
console
.
log
(
err
,
info
)
EventBus
.
$emit
(
'
error
'
,
err
)
}
window
.
onerror
=
function
(
message
,
source
,
lineno
,
colno
,
error
)
{
window
.
console
.
debug
(
'
window-error handler triggered
'
)
window
.
console
.
log
(
error
)
EventBus
.
$emit
(
'
error
'
,
error
)
}
window
.
addEventListener
(
'
unhandledrejection
'
,
function
(
event
)
{
window
.
console
.
debug
(
'
unhanldedrejection handler triggered
'
)
EventBus
.
$emit
(
'
error
'
,
event
.
reason
)
})
Axios
.
interceptors
.
response
.
use
(
function
(
response
)
{
return
response
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment