From fde6b13de3bc3d9786b1b2544bc52ddada5bf384 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Tue, 30 Apr 2024 06:35:46 +0000 Subject: [PATCH] make errors less verbose when a schema fails to load --- make_schema_doc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make_schema_doc.py b/make_schema_doc.py index 4ff7d40..90ef4df 100755 --- a/make_schema_doc.py +++ b/make_schema_doc.py @@ -681,6 +681,11 @@ def get_versioned_tables(first, last): new_schema, errors = get_schema.get_schema(schema_name, errors) pair_up_schema(bz_name, new_schema) schemas.append((bz_name, new_schema)) + # if we have errors at this point, it's fatal, there's no point + # in letting make_versioned_schema spew a ton more of them. + if errors: + e = str.join('
\n', errors) + raise BzSchemaProcessingException(e) schema = make_versioned_schema(schemas, colours, tr)