Skip to content

Commit

Permalink
chore: updates agent error response
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed May 21, 2024
1 parent 21e8d2b commit 317071d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- chore: updates agent error response to read "Gateway returns error" instead of "Server"`

## [1.3.0] - 2024-05-01

### Added
Expand Down
55 changes: 28 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/agent/src/agent/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export class HttpAgent implements Agent {
};
} else {
throw new AgentHTTPResponseError(
`Server returned an error:\n` +
`Gateway returned an error:\n` +
` Code: ${fetchResponse.status} (${fetchResponse.statusText})\n` +
` Body: ${await fetchResponse.text()}\n`,
{
Expand Down

0 comments on commit 317071d

Please sign in to comment.