1
Fork 0

api - panic instead of fatal when issue with the database migration

This commit is contained in:
BkSouX 2020-04-14 20:00:06 +02:00
parent 8b7a8bc56d
commit d256a31842
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func main() {
// Migrate database
if err := database.MigrateDatabase(db); err != nil {
log.Fatalf("Could not migrate database: %s\n", err)
panic(fmt.Sprintf("Could not migrate database: %s\n", err))
}
rootRouter := mux.NewRouter()