Skip to content

Commit

Permalink
Fix error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed-madi committed May 16, 2024
1 parent 0c9be90 commit c6f1aeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rest/diagnostic_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package rest

import (
"fmt"

Check failure on line 12 in rest/diagnostic_api.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)

Check failure on line 12 in rest/diagnostic_api.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
"github.com/couchbase/sync_gateway/auth"
"github.com/couchbase/sync_gateway/base"
channels "github.com/couchbase/sync_gateway/channels"
Expand All @@ -23,7 +24,7 @@ func (h *handler) handleGetAllChannels() error {
h.assertAdminOnly()
user, err := h.db.Authenticator(h.ctx()).GetUser(internalUserName(mux.Vars(h.rq)["name"]))
if err != nil {
return err
return fmt.Errorf("could not get user %s: %w", user.Name(), err)
}
if user == nil {
return kNotFoundError
Expand Down

0 comments on commit c6f1aeb

Please sign in to comment.