mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 00:23:41 +08:00
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
|
Rake::Task['posts:missing_uploads'].invoke
|
||||||
count = PostCustomField.where(name: Post::MISSING_UPLOADS).count
|
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 false if count > 0
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user