Fix warning "Throwable should be first argument"

This commit is contained in:
Benoit Marty 2025-12-05 09:48:26 +01:00
parent 54e742075d
commit 6541652d82

View file

@ -14,10 +14,10 @@ import timber.log.Timber
fun logError(throwable: Throwable) {
when (throwable) {
is ClientException.Generic -> {
Timber.e("Error ${throwable.msg}", throwable)
Timber.e(throwable, "Error ${throwable.msg}")
}
else -> {
Timber.e("Error", throwable)
Timber.e(throwable, "Error")
}
}
}