added a check if the migrator fails
Dieser Commit ist enthalten in:
Ursprung
b7b70afba4
Commit
d38cf41d23
|
@ -115,6 +115,7 @@ func SetupMigrator(prefix string, connection *pgx.Conn, migrations fs.FS) (mig *
|
|||
},
|
||||
)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("Error while creating the migrator")
|
||||
return
|
||||
}
|
||||
mig.OnStart = logmigrations
|
||||
|
|
Laden…
In neuem Issue referenzieren