Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: fix noisy error notification (#10286)

Arvin Xu9ea680c96d5a
diff --git a/src/libs/trpc/client/lambda.ts b/src/libs/trpc/client/lambda.ts
index 961cf7020e7..c85d134141e 100644
--- a/src/libs/trpc/client/lambda.ts
+++ b/src/libs/trpc/client/lambda.ts
@@ -52,8 +52,10 @@ const errorHandlingLink: TRPCLink<LambdaRouter> = () => {
}
default: {
- if (fetchErrorNotification)
+ console.error(err);
+ if (fetchErrorNotification && status) {
fetchErrorNotification.error({ errorMessage: err.message, status });
+ }
}
}
}