Skip to content

Commit

Permalink
Replace serializeError with errorMessage in chat.ts error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 4, 2024
1 parent d95cf16 commit 0de5be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async function runToolCalls(
} catch (e) {
logWarn(`tool: ${tool.spec.name} error`)
trace.error(`tool: ${tool.spec.name} error`, e)
output = serializeError(e)
output = errorMessage(e)
}
if (output === undefined || output === null)
throw new Error(
Expand Down

0 comments on commit 0de5be1

Please sign in to comment.