sentry: ignore EmuHalt in exceptions

This commit is contained in:
Steven Hugg 2020-08-11 10:01:44 -05:00
parent 5269585fd0
commit ac4b6a86ce
1 changed files with 7 additions and 2 deletions

View File

@ -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>