Skip to content

Commit 8c9d3dc

Browse files
committed
Forgot to change Throwable to SQLException instead
* Fixed within `OSInAppMessageRepository.java`
1 parent 76f1fc6 commit 8c9d3dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OSInAppMessageRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ synchronized void saveInAppMessage(OSInAppMessage inAppMessage) {
4242
} finally {
4343
try {
4444
writableDb.endTransaction(); // May throw if transaction was never opened or DB is full.
45-
} catch (Throwable t) {
46-
OneSignal.Log(OneSignal.LOG_LEVEL.ERROR, "Error closing transaction! ", t);
45+
} catch (SQLException e) {
46+
OneSignal.Log(OneSignal.LOG_LEVEL.ERROR, "Error closing transaction! ", e);
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)