fix raise commanderror when migration failed

This commit is contained in:
simon
2023-02-18 09:14:49 +07:00
parent 73da59ffbf
commit 229555d97d

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)