mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-26 07:49:22 -05:00
Improve error reporting
This commit is contained in:
parent
60c61e6231
commit
811cd7fcd3
|
|
@ -73,7 +73,7 @@ export default class StatusGeneratorManager
|
||||||
|
|
||||||
return { generator, status, clients };
|
return { generator, status, clients };
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.console(generator).error(`Error generating status: ${e}`);
|
this.console(generator).error('Error generating status:', e);
|
||||||
Sentry.captureException(e);
|
Sentry.captureException(e);
|
||||||
} finally {
|
} finally {
|
||||||
await screenshotHelper.close();
|
await screenshotHelper.close();
|
||||||
|
|
@ -104,7 +104,7 @@ export default class StatusGeneratorManager
|
||||||
await client.send(status, generator);
|
await client.send(status, generator);
|
||||||
await generator.updatelastPostCache(client);
|
await generator.updatelastPostCache(client);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.console(generator, client).error(`Error posting: ${e}`);
|
this.console(generator, client).error('Error posting:', e);
|
||||||
Sentry.captureException(e);
|
Sentry.captureException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user