mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
Add sentry capture exception
This commit is contained in:
parent
7932d23982
commit
78c07b814b
1 changed files with 1 additions and 0 deletions
|
|
@ -410,6 +410,7 @@ const getAISDKLanguageModelAndOptions = async (config: LanguageModel, orgId: num
|
|||
|
||||
const errorHandler = (error: unknown) => {
|
||||
logger.error(error);
|
||||
Sentry.captureException(error);
|
||||
|
||||
if (error == null) {
|
||||
return 'unknown error';
|
||||
|
|
|
|||
Loading…
Reference in a new issue