Check connection before starting server

This commit is contained in:
Dan Sosedoff 2014-10-10 00:25:06 -05:00
parent e80a4dea06
commit 29f7e2d58c

View File

@ -212,6 +212,12 @@ func initClient() {
log.Fatal(err)
}
_, err = client.Query(SQL_INFO)
if err != nil {
log.Fatal(err)
}
dbClient = client
}