We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74af452 commit 719e3e8Copy full SHA for 719e3e8
apps/sim/tools/utils.server.ts
@@ -110,10 +110,8 @@ async function fetchCustomToolFromDB(
110
const identifier = customToolId.replace('custom_', '')
111
112
if (!userId) {
113
- throw new Error(`Cannot fetch custom tool without userId: ${identifier}`)
114
- }
115
- if (!workspaceId) {
116
- throw new Error(`Cannot fetch custom tool without workspaceId: ${identifier}`)
+ logger.error(`Cannot fetch custom tool without userId: ${identifier}`)
+ return undefined
117
}
118
119
try {
0 commit comments