SQLite Forum

[detect-corrupt-fs] Why to convert SQLITE_IOERR_CORRUPTFS into SQLITE_CORRUPT?
Login
Checkins on branch detect-corrupt-fs add SQLITE_IOERR_CORRUPTFS error code, but it is converted into SQLITE_CORRUPT before returning to the app.
Why not just return the SQLITE_IOERR_CORRUPTFS? And why is it converted into a plain SQLITE_CORRUPT instead of some extended error code?