Skip to content

Commit adb2b0c

Browse files
committed
Send the right exception to TimelineTab
1 parent 6d55c32 commit adb2b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/readrops/app/sync/SyncWorker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ class SyncWorker(
9494

9595
workResult
9696
} catch (e: Exception) {
97-
Log.e(TAG, "${e::class.simpleName}: ${e.message} ${e.printStackTrace()}")
97+
Log.e(TAG, "${e.printStackTrace()}")
9898

9999
notificationManager.cancel(SYNC_NOTIFICATION_ID)
100100
if (isManual) {
101101
Result.failure(
102102
workDataOf(SYNC_FAILURE_KEY to true)
103-
.putSerializable(SYNC_FAILURE_EXCEPTION_KEY, e)
103+
.putSerializable(SYNC_FAILURE_EXCEPTION_KEY, Exception(e.cause))
104104
)
105105
} else {
106106
Result.failure()

0 commit comments

Comments
 (0)