Skip to content

Conversation

legraphista
Copy link

Fixes issue where Structure.toString() outputs: Structure(127, [[object Object]])
Now it should properly stringify the error: Structure(127, [{"code":"Neo.ClientError.Statement.ArithmeticError","message":"/ by zero"}])

Fixes issue where Structure.toString() outputs: `Structure(127, [[object Object]])`
Now it should properly stringify the error:  `Structure(127, [{"code":"Neo.ClientError.Statement.ArithmeticError","message":"/ by zero"}])`
@legraphista
Copy link
Author

I've noticed this issue when coupling a neo4j error with boom.internal from the boom package resulting in a bad error message (code found here).

@lutovich
Copy link
Contributor

@legraphista thanks for this PR! I think it is a good change. We'll also change errors to always be Neo4jError and not contain Structure thingy. See #201.

@lutovich lutovich merged commit ade8c29 into neo4j:1.0 Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants