nsarrazin HF Staff commited on
Commit
d6102a1
·
unverified ·
1 Parent(s): ee5c213

fix(tools): show error cause

Browse files
src/lib/server/textGeneration/tools.ts CHANGED
@@ -95,7 +95,8 @@ async function* callTool(
95
  type: MessageUpdateType.Tool,
96
  subtype: MessageToolUpdateType.Error,
97
  uuid,
98
- message: "An error occurred while calling the tool " + call.name,
 
99
  };
100
 
101
  return {
 
95
  type: MessageUpdateType.Tool,
96
  subtype: MessageToolUpdateType.Error,
97
  uuid,
98
+ message:
99
+ "An error occurred while calling the tool " + call.name + ": " + stringifyError(error),
100
  };
101
 
102
  return {