From 68400171ac726ebc7d155397bf928112f713705b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=88r=20Karlsson?= Date: Wed, 29 Jul 2015 17:58:33 +0200 Subject: [PATCH] typo --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1490b43d..d4a201ac 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func Open(dialect string, args ...interface{}) (DB, error) { // For some reason, postgres does not throw an connection error. // Sending a ping request after the connection is made is a quick workaround for this - if driver == "postgres" && err != nil { + if driver == "postgres" && err == nil { err = db.DB().Ping() }