Skip to content

Commit

Permalink
fix govet complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
marktheunissen committed Aug 16, 2024
1 parent df0f2b9 commit 5037918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ws_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func serveWS(w http.ResponseWriter, req *http.Request) {
session, err := auth.GetClaimsFromTokenInRequest(req)
if err != nil && (errors.Is(err, auth.ErrReadingToken) && !strings.HasPrefix(wsPath, `/objectManager`)) {
ErrorWithContext(ctx, err)
errorsApi.ServeError(w, req, errorsApi.New(http.StatusUnauthorized, err.Error()))
errorsApi.ServeError(w, req, errorsApi.New(http.StatusUnauthorized, "%s", err.Error()))
return
}

Expand Down

0 comments on commit 5037918

Please sign in to comment.