api - panic instead of fatal when issue with the database migration
This commit is contained in:
parent
8b7a8bc56d
commit
d256a31842
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue