Skip to content

Commit

Permalink
Output bblock identifier on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Oct 3, 2024
1 parent d985da6 commit 5d47077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogc/bblocks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, identifier: str, metadata_file: Path,
try:
jsonschema.validate(self.metadata, get_schema('bblock'))
except Exception as e:
raise BuildingBlockError('Error validating building block metadata') from e
raise BuildingBlockError(f'Error validating building block metadata for {identifier}') from e

self.metadata.pop('itemIdentifier', None)
self.metadata: dict[str, Any] = {
Expand Down

0 comments on commit 5d47077

Please sign in to comment.