migrate. print out error message.

This commit is contained in:
Weston Platter 2015-05-19 22:41:13 -06:00
parent 3c56a5feaf
commit 9f829a1da2
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ func migrate(goal, crupath, driver, connStr string) {
db, err := sql.Open(driver, connStr)
if err != nil {
ColorLog("[ERRO] Could not connect to %s: %s\n", driver, connStr)
ColorLog("[ERRO] Error: %v", err.Error())
os.Exit(2)
}
defer db.Close()