Skip to content

Commit

Permalink
Add error detail to catch-all HTTP response (#1854)
Browse files Browse the repository at this point in the history
(cherry picked from commit c51c26f)
  • Loading branch information
joshdover authored and mergify[bot] committed Sep 15, 2022
1 parent fd9c8db commit 8d9c0a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Give a grace period when starting the unenroll monitor. {issue}1500[1500]
- Fixes a race condition between the unenroller goroutine and the main goroutine for the coordinator monitor. {issues}1738[1738]
- Remove events from agent checkin body. {issue}1774[1774]
- Add error detail to catch-all HTTP error response. {pull}1854[1854]
==== New Features

Expand Down
1 change: 1 addition & 0 deletions internal/pkg/api/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func NewHTTPErrResp(err error) HTTPErrResp {
return HTTPErrResp{
StatusCode: http.StatusBadRequest,
Error: "BadRequest",
Message: err.Error(),
Level: zerolog.InfoLevel,
}
}
Expand Down

0 comments on commit 8d9c0a4

Please sign in to comment.