Skip to content

Commit fde6b13

Browse files
committed
make errors less verbose when a schema fails to load
1 parent 4d582bd commit fde6b13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

make_schema_doc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,11 @@ def get_versioned_tables(first, last):
681681
new_schema, errors = get_schema.get_schema(schema_name, errors)
682682
pair_up_schema(bz_name, new_schema)
683683
schemas.append((bz_name, new_schema))
684+
# if we have errors at this point, it's fatal, there's no point
685+
# in letting make_versioned_schema spew a ton more of them.
686+
if errors:
687+
e = str.join('<br/>\n', errors)
688+
raise BzSchemaProcessingException(e)
684689
schema = make_versioned_schema(schemas,
685690
colours,
686691
tr)

0 commit comments

Comments
 (0)