Skip to content

Commit

Permalink
Merge pull request #2545 from posit-dev/dotnomad/server-down-err
Browse files Browse the repository at this point in the history
Include connectivity to server check in invalid server or credentials error
  • Loading branch information
dotNomad authored Jan 27, 2025
2 parents 996813b + 055ab85 commit eb1bfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/clients/connect/client_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (u *UserDTO) CanPublish() bool {
return u.UserRole == AuthRoleAdmin || u.UserRole == AuthRolePublisher
}

var errInvalidServerOrCredentials = errors.New("could not validate credentials; check server URL and API key or token")
var errInvalidServerOrCredentials = errors.New("could not validate credentials; check connectivity to the server, the URL, and API key")
var errInvalidApiKey = errors.New("could not log in with the provided credentials")
var errInvalidServer = errors.New("could not access the server; check the server URL and try again")

Expand Down

0 comments on commit eb1bfe0

Please sign in to comment.