refactor: small improvements for cal ai (#23444)
* refactor: small improvements follow up * fix: add docs
This commit is contained in:
1 parent
e7779bba0a
commit
dd16c2b99d
6 files changed
+47
-23
No files matched your search
@@ -803,7 +803,10 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
|
||||
if (externalToolErrors.length > 0) {
|
||||
log.error(`Agent tool update errors for workflow ${id}:`, externalToolErrors);
|
||||
throw new Error(`${externalToolErrors.join("; ")}`);
|
||||
throw new TRPCError({
|
||||
code: "INTERNAL_SERVER_ERROR",
|
||||
message: externalToolErrors.join("; "),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user