migration: update the debug error

This commit is contained in:
astaxie 2014-08-14 13:44:05 +08:00
parent 31f0ac4ce3
commit 564c3bbeb5
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ func Rollback(name string) error {
time.Sleep(2 * time.Second)
return nil
} else {
beego.Error("not exist the migrationMap name:" + name)
time.Sleep(2 * time.Second)
return errors.New("not exist the migrationMap name:" + name)
}
}