Improve error mapping
This commit is contained in:
parent
b61ce1b19c
commit
e12726f405
6 changed files with 16 additions and 24 deletions
|
|
@ -12,7 +12,6 @@ import org.matrix.rustcomponents.sdk.ClientBuildException
|
|||
import org.matrix.rustcomponents.sdk.OidcException
|
||||
|
||||
fun Throwable.mapAuthenticationException(): AuthenticationException {
|
||||
val message = this.message ?: "Unknown error"
|
||||
return when (this) {
|
||||
is AuthenticationException -> this
|
||||
is ClientBuildException -> when (this) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue