We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d55c32 commit adb2b0cCopy full SHA for adb2b0c
app/src/main/java/com/readrops/app/sync/SyncWorker.kt
@@ -94,13 +94,13 @@ class SyncWorker(
94
95
workResult
96
} catch (e: Exception) {
97
- Log.e(TAG, "${e::class.simpleName}: ${e.message} ${e.printStackTrace()}")
+ Log.e(TAG, "${e.printStackTrace()}")
98
99
notificationManager.cancel(SYNC_NOTIFICATION_ID)
100
if (isManual) {
101
Result.failure(
102
workDataOf(SYNC_FAILURE_KEY to true)
103
- .putSerializable(SYNC_FAILURE_EXCEPTION_KEY, e)
+ .putSerializable(SYNC_FAILURE_EXCEPTION_KEY, Exception(e.cause))
104
)
105
} else {
106
Result.failure()
0 commit comments