-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom error in history api #762
Comments
Indeed, I had to introduce this variant for the SQLite based history: Lines 33 to 34 in 4a7dfe9
|
Another possible solution is to make |
Just for reference:
As far as I know, other rust libraries doesn't support custom |
Termwiz kinda supports every error type as you can just to |
Currently the history trait requires the error return to be a readline error. That means that one cannot return other error types that are not included in:
This can be fixed by either adding a
Box<dyn std::error::Error>
variant that can be used to return anystd::error::Error
or by adding a optional generic error type like this:The text was updated successfully, but these errors were encountered: