Add logging for unknown exceptions

This commit is contained in:
Steve Soltys 2024-09-25 01:57:22 +00:00 committed by Torsten Grote
parent 4aeb05813d
commit 42d7747641
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

@ -161,6 +161,9 @@ internal class KVRestore(
} catch (e: AEADBadTagException) {
Log.e(TAG, "Decryption failed", e)
TRANSPORT_ERROR
} catch (e: Exception) {
Log.e(TAG, "Unknown error", e)
TRANSPORT_ERROR
} finally {
dbManager.deleteDb(state.packageInfo.packageName, true)
this.state = null