1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

migrate. print out error message.

This commit is contained in:
Weston Platter 2015-05-19 22:41:13 -06:00
parent 3c56a5feaf
commit 9f829a1da2

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()