summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-06-21 11:08:06 -0700
committer Lee Shombert <shombert@google.com> 2024-06-25 12:25:01 -0700
commit1611e110d343655f3ead1c4b8606c90b59243f1f (patch)
tree79be5d9984fe9d23430c545ff1f97611420a91dd /libs/androidfw/StringPool.cpp
parent2af3c050291bf032943d4f913c64135dfe26674f (diff)
Improve error reporting for open-database failures
If sqlite is unable to open a database file, the root-cause is often a Posix errno. This CL adds the errno error message to the exception that is thrown. This CL also ensures that the updated error message makes it through the exception rewrite in SQLiteConnection.open(). Manually tested with a customized build that fails with ENOSPC and ENOENT. Test: atest * FrameworksCoreTests:android.database * CtsDatabaseTestCases * SQLiteDatabasePerfTest Bug: 338297108 Flag: EXEMPT bugfix Change-Id: I1fdad6c95f61a01345109d70318e4531245d1f0e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions