forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import: Replace generic Exception with CommandError.
This change improves error handling in `do_import_realm` by replacing the use of a generic Exception with CommandError. The updated approach provides clearer, user-friendly error messages when there is a version mismatch between the exported data and the Zulip server. Fixes zulip#32292.
- Loading branch information
1 parent
ffa7e0a
commit ca14366
Showing
4 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
zerver/tests/fixtures/import_fixtures/check_migrations_errors/extra_migrations_error.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
zerver/tests/fixtures/import_fixtures/check_migrations_errors/unapplied_migrations_error.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters