mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +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) => {
|
const errorHandler = (error: unknown) => {
|
||||||
logger.error(error);
|
logger.error(error);
|
||||||
|
Sentry.captureException(error);
|
||||||
|
|
||||||
if (error == null) {
|
if (error == null) {
|
||||||
return 'unknown error';
|
return 'unknown error';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue