From 915fa75b1e79d17c7dad2e77cb376eeee2c24911 Mon Sep 17 00:00:00 2001 From: Stuart McAlpine Date: Sun, 15 Sep 2024 15:05:15 +0200 Subject: [PATCH] Update error output --- src/dataregistry/db_basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dataregistry/db_basic.py b/src/dataregistry/db_basic.py index bc26e70e..833dafb6 100644 --- a/src/dataregistry/db_basic.py +++ b/src/dataregistry/db_basic.py @@ -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]