mirror of
https://github.com/beego/bee.git
synced 2024-11-25 20:10:55 +00:00
minor change
This commit is contained in:
parent
5b22b195cb
commit
6f3d2d31ef
@ -198,9 +198,11 @@ func writeMigrationSourceFile(filename string, driver string, connStr string, la
|
|||||||
|
|
||||||
func buildMigrationBinary(filename string) {
|
func buildMigrationBinary(filename string) {
|
||||||
cmd := exec.Command("go", "build", "-o", filename, filename+".go")
|
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)
|
ColorLog("[ERRO] Could not build migration binary: %s\n", err)
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
|
} else {
|
||||||
|
ColorLog("[INFO] %s\n", string(out))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user