1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00

minor change

This commit is contained in:
ZhengYang 2014-08-12 16:20:11 +08:00
parent 5b22b195cb
commit 6f3d2d31ef

View File

@ -198,9 +198,11 @@ func writeMigrationSourceFile(filename string, driver string, connStr string, la
func buildMigrationBinary(filename string) {
cmd := exec.Command("go", "build", "-o", filename, filename+".go")
if err := cmd.Run(); err != nil {
if out, err := cmd.CombinedOutput(); err != nil {
ColorLog("[ERRO] Could not build migration binary: %s\n", err)
os.Exit(2)
} else {
ColorLog("[INFO] %s\n", string(out))
}
}