1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Add an error log if embed handler fails, in addition to the existing sentry log

This commit is contained in:
Madeline 2023-01-15 16:21:46 +11:00
parent f2f71cafdf
commit 14321336cd
No known key found for this signature in database
GPG Key ID: 80D25DA3BCB24281

View File

@ -223,6 +223,7 @@ export async function postHandleMessage(message: Message) {
data.embeds.push(embed);
}
} catch (e) {
console.error(`[Embeds] Error while generating embed`, e);
Sentry.captureException(e, (scope) => {
scope.clear();
scope.setContext("request", { url });