-
Notifications
You must be signed in to change notification settings - Fork 5.6k
fix(ext/node): Add SQLite error details (#28289) #28431
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
fix(ext/node): Add SQLite error details (#28289) #28431
Conversation
@c00kie17 You can format all of the code by running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be done in sqlite/session.rs
and sqlite/statement.rs
too; we use raw FFI there so it will need a variant of from_rusqlite_with_details
that takes error codes directly.
Okay, I can work on that. |
9230508
to
3a11212
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Improves SQLite error reporting by including `err_code`, `err_str`, matching Node.js behavior. Fixes #28289
Improves SQLite error reporting by including
err_code
,err_str
, matching Node.js behavior.Fixes #28289