Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
fix error message on CypherError
Browse files Browse the repository at this point in the history
  • Loading branch information
Alastair McKinley committed Nov 18, 2019
1 parent b17d9b8 commit d883d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo4jPg/neo4jPGFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def cypher(plpy, query, params, url, login, password):
jsonResult += json.dumps(object)
jsonResult += "}"
yield jsonResult
except CypherError:
raise RuntimeError("Bad cypher query : " + statement)
except CypherError as ce:
raise RuntimeError("Bad cypher query: %s - Error message: %s" % (query,str(ce)))
finally:
session.close()

Expand Down

0 comments on commit d883d71

Please sign in to comment.