Improve error reporting

This commit is contained in:
Matt Isenhower 2026-02-17 22:05:05 -08:00
parent 60c61e6231
commit 811cd7fcd3

View File

@ -73,7 +73,7 @@ export default class StatusGeneratorManager
return { generator, status, clients };
} catch (e) {
this.console(generator).error(`Error generating status: ${e}`);
this.console(generator).error('Error generating status:', e);
Sentry.captureException(e);
} finally {
await screenshotHelper.close();
@ -104,7 +104,7 @@ export default class StatusGeneratorManager
await client.send(status, generator);
await generator.updatelastPostCache(client);
} catch (e) {
this.console(generator, client).error(`Error posting: ${e}`);
this.console(generator, client).error('Error posting:', e);
Sentry.captureException(e);
}
}