From ac95a885115bb33ad9c38a16341cc3d70614aa2d Mon Sep 17 00:00:00 2001 From: Jeff McKenna Date: Mon, 29 Jan 2024 12:27:40 -0400 Subject: [PATCH] expand TinyDB path message, for ProviderConnectionError (#1518) * expand TinyDB msg * expand TinyDB msg * fix long line * fix long line --- pygeoapi/provider/tinydb_.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pygeoapi/provider/tinydb_.py b/pygeoapi/provider/tinydb_.py index add15d6..3bac4c0 100644 --- a/pygeoapi/provider/tinydb_.py +++ b/pygeoapi/provider/tinydb_.py @@ -62,7 +62,9 @@ class TinyDBCatalogueProvider(BaseProvider): LOGGER.debug(f'Connecting to TinyDB db at {self.data}') if not os.path.exists(self.data): - msg = 'TinyDB does not exist' + msg = ('TinyDB file does not exist, please check ' + 'the path specified, or include the full ' + 'path to the file') LOGGER.error(msg) raise ProviderConnectionError(msg)