DEV: Improve error message for posts:missing_uploads during S3 migration
This commit is contained in:
parent
3e4e3fc7d7
commit
a15cca9a0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue