mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +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) {
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user