mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
DEV: Improve error message for posts:missing_uploads during S3 migration
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user