Skip to content

Commit

Permalink
Update error output
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmcalpine committed Sep 15, 2024
1 parent 19946bd commit 915fa75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dataregistry/db_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def __init__(self, db_connection, get_db_version=True):
prov_name = ".".join([self._schema, "provenance"])

if prov_name not in self._metadata.tables:
raise DataRegistryException(f"Incompatible database: no Provenance table {prov_name}")
raise DataRegistryException(
f"Incompatible database: no Provenance table {prov_name}, "
f"listed tables are {self._metadata.tables}"
)

if prov_name in self._metadata.tables and get_db_version:
prov_table = self._metadata.tables[prov_name]
Expand Down

0 comments on commit 915fa75

Please sign in to comment.