Skip to content

Conversation

John-Toohey
Copy link
Contributor

Under the current implementation, when a rexie::Error::IdbError is raised, very little information is given.

Consider the following (taken from inside my project with at least several layers of error types):

image

Whilst everything seems very erroneous, what the error is remains largely a mystery.

Now, with this patch, consider this:

image

I now have somewhere to base my debugging on.

Copy link
Owner

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding all the details in Display implementation, you can use Debug to get all the details in your alert (use {:?} instead of {}).

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