Skip to content

Commit

Permalink
fix: replace statusText with response.text()
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamwhiteuk committed Sep 2, 2024
1 parent e5d2de7 commit e60c3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tools/openLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class OpenLibraryTool extends Tool<OpenLibraryToolOutput, ToolOptions, To
});
if (!response.ok) {
throw new ToolError("Request to Open Library API has failed!", [
new Error(response.statusText),
new Error(await response.text()),
]);
}
try {
Expand Down

0 comments on commit e60c3b8

Please sign in to comment.