Fix warning "Throwable should be first argument"

This commit is contained in:
Benoit Marty
2025-12-05 09:48:26 +01:00
parent 72b3decf4c
commit 096b8768ea

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")
}
}
}