Skip to content

Commit

Permalink
nilify result error
Browse files Browse the repository at this point in the history
  • Loading branch information
laskoviymishka committed Mar 17, 2024
1 parent 5d03cb9 commit 7d6cfec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pgconn/pgconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func ConnectConfig(octx context.Context, config *Config) (pgConn *PgConn, err er
pgConn, fberr = connect(ctx, config, fc, false)
if fberr == nil {
foundBestServer = true
err = nil
break
} else if pgerr, ok := fberr.(*PgError); ok {
err = &ConnectError{Config: config, msg: "server error", err: pgerr}
Expand Down

0 comments on commit 7d6cfec

Please sign in to comment.