Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sqlite] print extended error codes on errors
Summary: Since v5.2.0, Sqlite ocaml bindings provide access to extended error codes. This means it's now possible to surface much more specific error messaging. For example, the basic error code for failing to open a database is `SQLITE_CANTOPEN (14)`, but there are many more extended error codes associated to this ``` SQLITE_CANTOPEN_CONVPATH (1038) SQLITE_CANTOPEN_DIRTYWAL (1294) SQLITE_CANTOPEN_FULLPATH (782) SQLITE_CANTOPEN_ISDIR (526) SQLITE_CANTOPEN_NOTEMPDIR (270) SQLITE_CANTOPEN_SYMLINK (1550) ``` The ocaml bindings only surface the numerical code, not the string description, so we print that together with the textual description of the basic code. Reviewed By: geralt-encore Differential Revision: D67187200 Privacy Context Container: L1208441 fbshipit-source-id: b0bebae73a371373cba06c14aa1e31f93cac8820
- Loading branch information