mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-12 18:45:29 -05:00
Report to Sentry when an update fails
This commit is contained in:
@@ -4,6 +4,7 @@ import CoopUpdater from "./updaters/CoopUpdater.mjs";
|
||||
import FestivalUpdater from "./updaters/FestivalUpdater.mjs";
|
||||
import XRankUpdater from "./updaters/XRankUpdater.mjs";
|
||||
import StagesUpdater from "./updaters/StagesUpdater.mjs";
|
||||
import Sentry from '@sentry/node';
|
||||
|
||||
function updaters() {
|
||||
return [
|
||||
@@ -45,6 +46,7 @@ export async function update(config = 'default') {
|
||||
await updater.updateIfNeeded();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
Sentry.captureException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user