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
@dashed Continuing with the "better late than never" theme, I have a local branch that does indeed change SqliteError to an enum. It sprouted several more cases than I was expecting, where we were (ab)using SQLite error codes for errors occurring on the Rust side. The change is relatively minor but quite widespread, so I'm going to wait for the currently-open PRs to get finished and merged in. This is coming soon though!
The following error return isn't all that useful: https://github.com/jgallagher/rusqlite/blob/7586556db5b4ad4db94e5e6ab5232f8868b8f5c9/src/lib.rs#L299-L302
And capturing the error through string comparison
message
isn't a good solution.I think it may be useful to have error types that can be externally captured via rusqlite as a library.
This may require
SqliteError
to be an enum or something.The text was updated successfully, but these errors were encountered: