Skip to content

Commit

Permalink
Update pkg/proxy/proxy.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Kazakov <[email protected]>
  • Loading branch information
filariow and alexeykazakov authored Aug 29, 2024
1 parent 73039cc commit 1ed6846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func (p *Proxy) ensureUserIsNotBanned() echo.MiddlewareFunc {
}

errorResponse := func(err *crterrors.Error) error {
ctx.Logger().Error(errs.Wrap(err, "workspace list error"))
ctx.Logger().Error(errs.Wrap(err, "user ban status check error"))
ctx.Response().Writer.Header().Set("Content-Type", "application/json")
ctx.Response().Writer.WriteHeader(int(err.Code))
return json.NewEncoder(ctx.Response().Writer).Encode(err.Status)
Expand Down

0 comments on commit 1ed6846

Please sign in to comment.