DEV: Improve error message for posts:missing_uploads during S3 migration

This commit is contained in:
David Taylor 2019-05-20 16:09:22 +01:00
parent 3e4e3fc7d7
commit a15cca9a0f
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ def migration_successful?(db, should_raise = false)
Rake::Task['posts:missing_uploads'].invoke
count = PostCustomField.where(name: Post::MISSING_UPLOADS).count
raise failure_message if count > 0 && should_raise
raise "rake posts:missing_uploads identified #{count} issues. #{failure_message}" if count > 0 && should_raise
return false if count > 0
return true