diff options
| author | Dax Raad <[email protected]> | 2025-05-27 21:53:11 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-27 21:53:21 -0400 |
| commit | 4132fcc1b286af5e61bf5eaa89f789988362f995 (patch) | |
| tree | 9417ec0a759d0758a2299128167d2ce6a0030c8a | |
| parent | 37082b217653b33da1ff5318293ceec28a253f9b (diff) | |
| download | opencode-4132fcc1b286af5e61bf5eaa89f789988362f995.tar.gz opencode-4132fcc1b286af5e61bf5eaa89f789988362f995.zip | |
return tool errors properly
| -rw-r--r-- | js/src/tool/tool.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/src/tool/tool.ts b/js/src/tool/tool.ts index 54e4da401..0cd65e007 100644 --- a/js/src/tool/tool.ts +++ b/js/src/tool/tool.ts @@ -48,7 +48,12 @@ export namespace Tool { log.error("error", { msg: e.toString(), }); - return "An error occurred: " + e.toString(); + return { + metadata: { + error: true, + }, + output: "An error occurred: " + e.toString(), + }; } }, }); |
