Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Improve error message for check-node-fixtures.
Steve Howell196df919f2f0
diff --git a/tools/check-node-fixtures b/tools/check-node-fixturesindex 40f52645d83..c2cac34ae0d 100755--- a/tools/check-node-fixtures+++ b/tools/check-node-fixtures@@ -11,6 +11,8 @@ TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))sys.path.insert(0, os.path.dirname(TOOLS_DIR))ROOT_DIR = os.path.dirname(TOOLS_DIR)+EVENTS_JS = "frontend_tests/node_tests/lib/events.js"+# check for the venvfrom tools.lib import sanity_check@@ -73,7 +75,11 @@ def check_event(name: str, event: Dict[str, Any]) -> None:event["id"] = 1checker = get_event_checker(event)if checker is not None:- checker(name, event)+ try:+ checker(name, event)+ except AssertionError:+ print(f"\n{EVENTS_JS} has bad data for {name}:\n\n")+ raiseelse:print(f"NEED SCHEMA: {name}")