Skip to content

Commit

Permalink
add exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 27, 2018
1 parent efd89a5 commit 5ba2b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygeoapi/provider/postgresql.py
Expand Up @@ -215,6 +215,7 @@ def query(self, startindex=0, limit=10, resulttype='results',
LOGGER.error('Error executing sql_query: {}'.format(
sql_query.as_string(cursor)))
LOGGER.error('Using public schema: {}'.format(db.schema))
LOGGER.error(err)
raise ProviderQueryError()

self.dataDB = cursor.fetchall()
Expand Down Expand Up @@ -249,6 +250,7 @@ def get(self, identifier):
LOGGER.error('Error executing sql_query: {}'.format(
sql_query.as_string(cursor)))
LOGGER.error('Using public schema: {}'.format(db.schema))
LOGGER.error(err)
raise ProviderQueryError()

self.dataDB = cursor.fetchall()
Expand Down

0 comments on commit 5ba2b3f

Please sign in to comment.