Skip to content

Commit

Permalink
Fix status call to make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelsey committed Dec 11, 2020
1 parent 4458356 commit 0c07c77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/migrate_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"net/url"
"os"

"github.com/gobuffalo/pop/v5"
"github.com/netlify/gotrue/conf"
Expand Down Expand Up @@ -56,7 +57,7 @@ func migrate(cmd *cobra.Command, args []string) {
logrus.Fatalf("%+v", errors.Wrap(err, "creating db migrator"))
}
logrus.Infof("before status")
err = mig.Status()
err = mig.Status(os.Stdout)
if err != nil {
logrus.Fatalf("%+v", errors.Wrap(err, "migration status"))
}
Expand All @@ -69,7 +70,7 @@ func migrate(cmd *cobra.Command, args []string) {
}

logrus.Infof("after status")
err = mig.Status()
err = mig.Status(os.Stdout)
if err != nil {
logrus.Fatalf("%+v", errors.Wrap(err, "migration status"))
}
Expand Down

0 comments on commit 0c07c77

Please sign in to comment.