mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-14 02:55:39 +00:00
Add an error log if embed handler fails, in addition to the existing sentry log
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user