mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-27 02:54:48 +00:00
return tool errors properly
This commit is contained in:
@@ -48,7 +48,12 @@ export namespace Tool {
|
|||||||
log.error("error", {
|
log.error("error", {
|
||||||
msg: e.toString(),
|
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