🔊 add reason of failed to auto migrate model

This commit is contained in:
Xhofe 2022-02-19 17:25:50 +08:00
parent cc62cc99d2
commit 185795954b

View File

@ -79,6 +79,6 @@ func InitModel() {
err = conf.DB.AutoMigrate(&model.SettingItem{}, &model.Account{}, &model.Meta{})
}
if err != nil {
log.Fatalf("failed to auto migrate")
log.Fatalf("failed to auto migrate: %s", err.Error())
}
}