mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
remove user-facing errors
This commit is contained in:
parent
7f04dc56bd
commit
08e76edd51
6 changed files with 10 additions and 10 deletions
|
|
@ -412,7 +412,7 @@ export function createMockTool(
|
|||
} catch (error) {
|
||||
logger.log(`Error executing mock tool ${config.name}:`, error);
|
||||
return JSON.stringify({
|
||||
error: `Mock tool execution failed: ${error}`,
|
||||
error: "Tool execution failed!",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -447,7 +447,7 @@ export function createWebhookTool(
|
|||
} catch (error) {
|
||||
logger.log(`Error executing webhook tool ${config.name}:`, error);
|
||||
return JSON.stringify({
|
||||
error: `Tool execution failed: ${error}`,
|
||||
error: "Tool execution failed!",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -482,7 +482,7 @@ export function createMcpTool(
|
|||
} catch (error) {
|
||||
logger.log(`Error executing mcp tool ${name}:`, error);
|
||||
return JSON.stringify({
|
||||
error: `Tool execution failed: ${error}`,
|
||||
error: "Tool execution failed!",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -521,7 +521,7 @@ export function createComposioTool(
|
|||
} catch (error) {
|
||||
logger.log(`Error executing composio tool ${name}:`, error);
|
||||
return JSON.stringify({
|
||||
error: `Tool execution failed: ${error}`,
|
||||
error: "Tool execution failed!",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ export class JobsWorker implements IJobsWorker {
|
|||
await this.jobsRepository.update(job.id, {
|
||||
status: "failed",
|
||||
output: {
|
||||
error: error instanceof Error ? error.message : "Unknown error",
|
||||
error: "Something went wrong. Please try again.",
|
||||
},
|
||||
});
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue