Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
string_validation: Standardize missing topic with missing stream name.
Alex Vandiver4f482c234c3a
diff --git a/zerver/lib/string_validation.py b/zerver/lib/string_validation.pyindex a6fc15cb9f6..df0f34bd5f8 100644--- a/zerver/lib/string_validation.py+++ b/zerver/lib/string_validation.py@@ -24,7 +24,7 @@ def check_stream_name(stream_name: str) -> None:def check_stream_topic(topic: str) -> None:if topic.strip() == "":- raise JsonableError(_("Topic can't be empty"))+ raise JsonableError(_("Topic can't be empty!"))for character in topic:unicodeCategory = unicodedata.category(character)diff --git a/zerver/tests/test_message_send.py b/zerver/tests/test_message_send.pyindex aa647b8cf0a..4da2c61ea83 100644--- a/zerver/tests/test_message_send.py+++ b/zerver/tests/test_message_send.py@@ -723,7 +723,7 @@ class MessagePOSTTest(ZulipTestCase):"topic": "",},)- self.assert_json_error(result, "Topic can't be empty")+ self.assert_json_error(result, "Topic can't be empty!")def test_missing_topic(self) -> None:"""