mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:12:42 +00:00
fix(tools): keep tool errors concise
This commit is contained in:
@@ -22,6 +22,7 @@ describe("pi tool definition adapter", () => {
|
||||
status: "error",
|
||||
tool: "boom",
|
||||
});
|
||||
expect(JSON.stringify(result.details)).toContain("nope");
|
||||
expect(result.details).toMatchObject({ error: "nope" });
|
||||
expect(JSON.stringify(result.details)).not.toContain("\n at ");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user