Improve Error Messaging for APOC Procedure Failure in Neo4jGraph (#5547)

## Improve Error Messaging for APOC Procedure Failure in Neo4jGraph

This commit revises the error message provided when the
'apoc.meta.data()' procedure fails. Previously, the message simply
instructed the user to install the APOC plugin in Neo4j. The new error
message is more specific.

Also removed an unnecessary newline in the Cypher statement variable:
`node_properties_query`.

Fixes #5545 

## Who can review?
  - @vowelparrot
  - @dev2049
This commit is contained in:
Hao Chen 2023-06-04 07:56:39 +08:00 committed by GitHub
parent 33ea606f45
commit 3e45b83065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,8 @@ class Neo4jGraph:
except neo4j.exceptions.ClientError: except neo4j.exceptions.ClientError:
raise ValueError( raise ValueError(
"Could not use APOC procedures. " "Could not use APOC procedures. "
"Please install the APOC plugin in Neo4j." "Please ensure the APOC plugin is installed in Neo4j and that "
"'apoc.meta.data()' is allowed in Neo4j configuration "
) )
@property @property