When a query fails, such as invalid syntax, an RPC error is returned. However, at the moment this is only logged to the terminal rather than returned as an error meaning there is no way to tell if a query failed on the database.
Steps to reproduce
Query the database with a query using incorrect syntax. The database will reject this and send back an RPC error logged in the terminal.
Expected behaviour
Any errors the database encounters should be returned to Send() so it can be returned and handled gracefully.
SurrealDB version
surreal 2.0.4
Contact Details
No response
Is there an existing issue for this?
[X] I have searched the existing issues
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Describe the bug
When a query fails, such as invalid syntax, an RPC error is returned. However, at the moment this is only logged to the terminal rather than returned as an error meaning there is no way to tell if a query failed on the database.
Steps to reproduce
Query the database with a query using incorrect syntax. The database will reject this and send back an RPC error logged in the terminal.
Expected behaviour
Any errors the database encounters should be returned to
Send()
so it can be returned and handled gracefully.SurrealDB version
surreal 2.0.4
Contact Details
No response
Is there an existing issue for this?
Code of Conduct