fix trace io

This commit is contained in:
Dmitry Vasilev
2023-07-14 05:40:13 +03:00
parent 275001263f
commit e8f41d9659
2 changed files with 13 additions and 4 deletions

View File

@@ -29,7 +29,11 @@ const set_error_handler = (w, with_unhandled_rejection = true) => {
}
if(with_unhandled_rejection) {
w.addEventListener('unhandledrejection', (event) => {
ui.set_status(event.reason)
const error = event.reason
if(error.__ignore) {
return
}
ui.set_status(error)
})
}
}