Skip to content

Commit

Permalink
Discriminate between Dial errors
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Aug 20, 2018
1 parent f9e0447 commit 7a01483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redli.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ func main() {
var err error
conn, err = redis.DialURL(connectionurl, redis.DialTLSConfig(config))
if err != nil {
log.Fatal("Dial", err)
log.Fatal("Dial TLS ", err)
}
defer conn.Close()
} else {
var err error
conn, err = redis.DialURL(connectionurl)
if err != nil {
log.Fatal("Dial", err)
log.Fatal("Dial ", err)
}
defer conn.Close()
}
Expand Down

0 comments on commit 7a01483

Please sign in to comment.