Fix warning "Throwable should be first argument"
This commit is contained in:
parent
72b3decf4c
commit
096b8768ea
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue