Skip to content

Commit

Permalink
Update internal/api/httpsrv/handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Mason <[email protected]>
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe and mikemrm authored Oct 7, 2024
1 parent eb3edbd commit 32e6aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/httpsrv/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func (h *apiHandler) rollbackAndReturnError(ctx context.Context, httpcode int, m
if err := h.engine.RollbackContext(ctx); err != nil {
return echo.NewHTTPError(
http.StatusInternalServerError,
fmt.Errorf("%w: %w", ErrDBRollbackFailed, err),
)
fmt.Errorf("%s and %w", msg, ErrDBRollbackFailed),
).SetInternal(err)
}

return echo.NewHTTPError(httpcode, msg)
Expand Down

0 comments on commit 32e6aa1

Please sign in to comment.