mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-02 06:52:19 +00:00
Catch Sentry errors so that archived version works
This commit is contained in:
parent
6dce525272
commit
1f1b7aa229
1 changed files with 11 additions and 5 deletions
|
|
@ -80,11 +80,17 @@ function filterBreadcrumbActions(action) {
|
|||
return !noisy;
|
||||
}
|
||||
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
/* global COMMITHASH */
|
||||
release: typeof COMMITHASH !== "undefined" ? COMMITHASH : "DEV",
|
||||
});
|
||||
try {
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
/* global COMMITHASH */
|
||||
release: typeof COMMITHASH !== "undefined" ? COMMITHASH : "DEV",
|
||||
});
|
||||
} catch (e) {
|
||||
// Archive.org tries to rewrite the DSN to point to a archive.org version
|
||||
// since it looks like a URL. When this happens, Sentry crashes.
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
const sentryMiddleware = createMiddleware(Sentry, {
|
||||
filterBreadcrumbActions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue