1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-15 06:29:32 +00:00

sentry: ignore EmuHalt in exceptions

This commit is contained in:
Steven Hugg 2020-08-11 10:01:44 -05:00
parent 5269585fd0
commit ac4b6a86ce

View File

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