mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix warning "Throwable should be first argument"
This commit is contained in:
+2
-2
@@ -14,10 +14,10 @@ import timber.log.Timber
|
|||||||
fun logError(throwable: Throwable) {
|
fun logError(throwable: Throwable) {
|
||||||
when (throwable) {
|
when (throwable) {
|
||||||
is ClientException.Generic -> {
|
is ClientException.Generic -> {
|
||||||
Timber.e("Error ${throwable.msg}", throwable)
|
Timber.e(throwable, "Error ${throwable.msg}")
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
Timber.e("Error", throwable)
|
Timber.e(throwable, "Error")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user