Skip to content

Commit

Permalink
fix: use correct error message for SSL verification errors
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx committed Oct 4, 2019
1 parent 57a45f8 commit a7fe39e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ core/coverage.out
# ignore detect secrets files
.pre-commit-config.yaml
.secrets.baseline
/.settings/
5 changes: 4 additions & 1 deletion core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ const (
ERRORMSG_NO_AUTHENTICATOR = "Authentication information was not properly configured."
ERRORMSG_AUTHTYPE_UNKNOWN = "Unrecognized authentication type: %s"
ERRORMSG_PROPS_MAP_NIL = "The 'properties' map cannot be nil."
ERRORMSG_SSL_VERIFICATION_FAILED = "If you're trying to call a service on ICP or Cloud Pak for Data, you may not have a valid SSL certificate. If you need to access the service without setting that up, try using the DisableSSLVerification option in your authentication configuration and/or calling DisableSSLVerification() on your service."
ERRORMSG_SSL_VERIFICATION_FAILED = "The connection failed because the SSL certificate is not valid. To use a " +
"self-signed certificate, disable verification of the server's SSL certificate " +
"by invoking the DisableSSLVerification() function on your service instance " +
"and/or use the DisableSSLVerification option of the authenticator."
)

0 comments on commit a7fe39e

Please sign in to comment.