We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2da6713 + fa7ae67 commit 00c7774Copy full SHA for 00c7774
error.go
@@ -499,7 +499,7 @@ func (cn *conn) errRecover(err *error) {
499
cn.setBad()
500
*err = driver.ErrBadConn
501
case error:
502
- if v == io.EOF || v.(error).Error() == "remote error: handshake failure" {
+ if v == io.EOF || v.Error() == "remote error: handshake failure" {
503
504
} else {
505
*err = v
0 commit comments