1
0
mirror of https://github.com/beego/bee.git synced 2024-12-26 01:10:50 +00:00

minor changes

This commit is contained in:
ZhengYang 2014-08-21 11:01:40 +08:00
parent f2528fcf79
commit 5c85c10b18

View File

@ -236,7 +236,7 @@ func generateAppcode(driver, connStr, level, tables, currpath string) {
func gen(dbms, connStr string, mode byte, selectedTableNames map[string]bool, currpath string) {
db, err := sql.Open(dbms, connStr)
if err != nil {
ColorLog("[ERRO] Could not connect to %s database: %s %s\n", dbms, connStr, err)
ColorLog("[ERRO] Could not connect to %s database: %s, %s\n", dbms, connStr, err)
os.Exit(2)
}
defer db.Close()