You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
An error message is given when a TypeDB Client error is display formatted. This error message is not produced when debug formatting the same error message. This is unintuitive, as debug printing an object should yield at least as much diagnostic information as display printing the object.
Current Workaround
We both debug format TypeDB Client errors to show the kind of error, and display format the errors to show their error message.
Proposed Solution
TypeDB Client errors show their enum instance and error message when debug formatted.
The text was updated successfully, but these errors were encountered:
## What is the goal of this PR?
We improve the debug formatting for macro-generated errors, by including
more detail about the error. This solves issue
typedb/typedb-driver-rust#44
## What are the changes implemented in this PR?
We include the error code and error message in the debug format for
macro-generated errors. We do this by explicitly implimenting
`std::fmt::Debug`, inserting the error code and error message.
Problem to Solve
An error message is given when a TypeDB Client error is display formatted. This error message is not produced when debug formatting the same error message. This is unintuitive, as debug printing an object should yield at least as much diagnostic information as display printing the object.
Current Workaround
We both debug format TypeDB Client errors to show the kind of error, and display format the errors to show their error message.
Proposed Solution
TypeDB Client errors show their enum instance and error message when debug formatted.
The text was updated successfully, but these errors were encountered: