Skip to content

Commit

Permalink
Merge pull request #13 from maxd/add-logs
Browse files Browse the repository at this point in the history
Add STDERR to error message
  • Loading branch information
tycooon authored May 11, 2022
2 parents c0ad3ee + 44daff8 commit 2032dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/sequel_management.rake
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class SequelManagement

logger.info "Begin rolling back new migrations"

migration_files, _, status = Open3.capture3(git_command)
abort "Can't get list of migration files" unless status.success?
migration_files, error, status = Open3.capture3(git_command)
abort "Can't get list of migration files:\n#{error}" unless status.success?

original_migrations = migration_files.split.map { |path| File.basename(path) }
migrations_to_rollback = (migrator.applied_migrations - original_migrations).sort.reverse
Expand Down

0 comments on commit 2032dc6

Please sign in to comment.