Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
import: Fix propagation of subdomain error messages.
Tim Abbottd041bb067449
diff --git a/zerver/management/commands/import.py b/zerver/management/commands/import.pyindex c809d28731e..22430e71771 100644--- a/zerver/management/commands/import.py+++ b/zerver/management/commands/import.py@@ -77,8 +77,11 @@ import a database dump from one or more JSON files."""try:check_subdomain_available(subdomain, allow_reserved_subdomain)- except ValidationError:- raise CommandError("Subdomain reserved: pass --allow-reserved-subdomain to use.")+ except ValidationError as e:+ raise CommandError(+ e.messages[0]+ + "\nPass --allow-reserved-subdomain to override subdomain restrictions."+ )paths = []for path in options["export_paths"]: