diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-15 16:21:46 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-15 16:21:46 +1100 |
commit | dda70a66c9615a7edfd1e220e000eab30996244e (patch) | |
tree | 9951be65f29c51d5e2568737d306e286397a7933 | |
parent | Update openapi (diff) | |
download | server-dda70a66c9615a7edfd1e220e000eab30996244e.tar.xz |
Add an error log if embed handler fails, in addition to the existing sentry log
-rw-r--r-- | src/api/util/handlers/Message.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 93dc3bf4..d6fe48bd 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -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 }); |