forked from github/szkolny
[Login] Fix crashing on register availability error.
This commit is contained in:
parent
58a26cc0c6
commit
9740e0b7bf
@ -88,11 +88,13 @@ class SzkolnyApi(val app: App) : CoroutineScope {
|
||||
withContext(Dispatchers.Default) { block.invoke(this@SzkolnyApi) }
|
||||
}
|
||||
catch (e: Exception) {
|
||||
ErrorDetailsDialog(
|
||||
withContext(coroutineContext) {
|
||||
ErrorDetailsDialog(
|
||||
activity,
|
||||
listOf(e.toApiError(TAG)),
|
||||
R.string.error_occured
|
||||
)
|
||||
)
|
||||
}
|
||||
null
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user