mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 19:54:22 +01:00
return tool errors properly
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user