From 44daff8bfa45ec2cd9f409982e13095bbe31d809 Mon Sep 17 00:00:00 2001 From: Maxim Dobryakov Date: Wed, 11 May 2022 17:48:31 +0300 Subject: [PATCH] Add STDERR to error message --- lib/tasks/sequel_management.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/sequel_management.rake b/lib/tasks/sequel_management.rake index 70c727d..cfd7e43 100644 --- a/lib/tasks/sequel_management.rake +++ b/lib/tasks/sequel_management.rake @@ -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