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:
parent
f2f71cafdf
commit
14321336cd
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user