allow no tables.

This commit is contained in:
Peter van Hardenberg 2014-10-29 12:11:52 -07:00
parent 966b49fb77
commit 7c71b0d826

View File

@ -75,14 +75,11 @@ func initClient() {
}
fmt.Println("Checking tables...")
tables, err := client.Tables()
_, err = client.Tables()
if err != nil {
exitWithMessage(err.Error())
}
if len(tables) == 0 {
exitWithMessage("Database does not have any tables")
}
dbClient = client
}