Skip to content

Commit

Permalink
Change registry login error to syserror
Browse files Browse the repository at this point in the history
  • Loading branch information
doriable committed Oct 29, 2024
1 parent 9ad3f2e commit a1f0290
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/bufbuild/buf/private/pkg/netext"
"github.com/bufbuild/buf/private/pkg/netrc"
"github.com/bufbuild/buf/private/pkg/oauth2"
"github.com/bufbuild/buf/private/pkg/syserror"
"github.com/bufbuild/buf/private/pkg/transport/http/httpclient"
"github.com/pkg/browser"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -210,7 +211,7 @@ func inner(
}
user := resp.Msg.User
if user == nil {
return errors.New("no user found for provided token")
return syserror.New("no user found for registry login token")
}
if err := netrc.PutMachines(
container,
Expand Down

0 comments on commit a1f0290

Please sign in to comment.