Upgrade dependencies, use new Timber's overloaded method for errors

This commit is contained in:
len
2016-09-08 18:30:29 +02:00
parent ccdc336112
commit 6a30a75e3e
17 changed files with 30 additions and 30 deletions
@@ -80,10 +80,10 @@ class DownloadManager(
if (areAllDownloadsFinished()) {
DownloadService.stop(context)
}
}, { e ->
}, { error ->
DownloadService.stop(context)
Timber.e(e, e.message)
downloadNotifier.onError(e.message)
Timber.e(error)
downloadNotifier.onError(error.message)
})
if (!isRunning) {
@@ -369,8 +369,8 @@ class DownloadManager(
try {
it.write(gson.toJson(pages).toByteArray())
it.flush()
} catch (e: Exception) {
Timber.e(e, e.message)
} catch (error: Exception) {
Timber.e(error)
}
}
}