Skip to content

Commit

Permalink
cmd/server: Improves error message in migrate command
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed May 8, 2018
1 parent 6f4779c commit 4b17ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ func RunMigrateHydra(logger *logrus.Logger) func(cmd *cobra.Command, args []stri
migrate.SetTable("keto_legacy_hydra_migrations")
n, err := migrate.Exec(db.DB, db.DriverName(), legacy.HydraLegacyMigrations[db.DriverName()], migrate.Up)
if err != nil {
logger.WithError(err).WithField("migrations", n).WithField("table", "policies").Print("An error occurred while trying to apply SQL migrations")
logger.WithError(err).WithField("migrations", n).Print("An error occurred while trying to apply SQL migrations")
}
logger.WithField("migrations", n).WithField("table", "role").Print("Successfully applied SQL migrations")
logger.WithField("migrations", n).Print("Successfully applied SQL migrations")
logger.Info("Done applying SQL migrations")
}
}

0 comments on commit 4b17ce8

Please sign in to comment.