Skip to content

Commit

Permalink
Merge pull request #1 from getkalido/bug/better_corruption_logging
Browse files Browse the repository at this point in the history
Made the currupt migrations table error a bit more usable.
  • Loading branch information
dbreedt authored Aug 18, 2020
2 parents 9dff9b0 + fac0203 commit d1866b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func migrate(db *pg.DB) error {
missingMigrations := difference(migrations, migrationNames)

if len(missingMigrations) > 0 {
return errors.New("Migrations table corrupt")
return errors.Errorf("Migrations table corrupt: %+v", missingMigrations)
}

migrationsToRun := difference(migrationNames, migrations)
Expand Down

0 comments on commit d1866b2

Please sign in to comment.