sentry: ignore EmuHalt in exceptions
This commit is contained in:
parent
5269585fd0
commit
ac4b6a86ce
|
@ -39,8 +39,8 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||
|
||||
<!-- Sentry error reporting -->
|
||||
<script
|
||||
src="https://browser.sentry-cdn.com/5.10.2/bundle.min.js"
|
||||
integrity="sha384-ssBfXiBvlVC7bdA/VX03S88B5MwXQWdnpJRbUYFPgswlOBwETwTp6F3SMUNpo9M9"
|
||||
src="https://browser.sentry-cdn.com/5.20.1/bundle.min.js"
|
||||
integrity="sha384-O8HdAJg1h8RARFowXd2J/r5fIWuinSBtjhwQoPesfVILeXzGpJxvyY/77OaPPXUo"
|
||||
crossorigin="anonymous"></script>
|
||||
<script>
|
||||
if (window.location.host.endsWith('8bitworkshop.com')) {
|
||||
|
@ -52,6 +52,11 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||
}
|
||||
return breadcrumb;
|
||||
},
|
||||
beforeSend(event, hint) {
|
||||
const error = hint.originalException;
|
||||
if (error instanceof EmuHalt) return null; // ignore EmuHalt
|
||||
return event;
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue