Officially rename error elephant to errorphant (#3922)
In honor of https://strangeobject.space/@esther/109866090382540100 https://masto.ai/@mynotaurus/110826349670549779
This commit is contained in:
parent
49fd2c8478
commit
cb8a09d3f7
17 changed files with 110 additions and 165 deletions
|
|
@ -30,9 +30,9 @@ fun Throwable.getServerErrorMessage(): String? {
|
|||
|
||||
/** @return A drawable resource to accompany the error message for this throwable */
|
||||
fun Throwable.getDrawableRes(): Int = when (this) {
|
||||
is IOException -> R.drawable.elephant_offline
|
||||
is HttpException -> R.drawable.elephant_offline
|
||||
else -> R.drawable.elephant_error
|
||||
is IOException -> R.drawable.errorphant_offline
|
||||
is HttpException -> R.drawable.errorphant_offline
|
||||
else -> R.drawable.errorphant_error
|
||||
}
|
||||
|
||||
/** @return A string error message for this throwable */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue