SAP / go-hdb

SAP HANA Database Client for Go
Apache License 2.0
168 stars 57 forks source link

add reason to bad connection error #95

Closed kuerbiskarton closed 2 years ago

kuerbiskarton commented 2 years ago

Instead of raising a plain driver.ErrBadConn error, raise an error that

This is helpful in case of issues with server certificate validation. Instead of just

driver: bad connection

the error is then

driver: bad connection: x509: certificate signed by unknown authority
driver: bad connection: x509: certificate relies on legacy Common Name field, use SANs instead
cla-assistant[bot] commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


kuerbiskarton seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.