fix raise commanderror when migration failed

This commit is contained in:
simon 2023-02-18 09:14:49 +07:00
parent 73da59ffbf
commit 229555d97d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -168,4 +168,4 @@ class Command(BaseCommand):
message = f" 🗙 {index_name} vid_type update failed"
self.stdout.write(self.style.ERROR(message))
self.stdout.write(response)
CommandError(message)
raise CommandError(message)