mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3476 Migration | Enhancement | Show required space for "Not enough space" error (#2201)
Co-authored-by: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com>
This commit is contained in:
parent
82ac6e47ec
commit
68eff667fb
5 changed files with 12 additions and 11 deletions
|
@ -116,7 +116,7 @@ class MiddlewareServiceImplementation @Inject constructor(
|
|||
if (error != null && error.code != Rpc.Account.Migrate.Response.Error.Code.NULL) {
|
||||
when(error.code) {
|
||||
Rpc.Account.Migrate.Response.Error.Code.NOT_ENOUGH_FREE_SPACE -> {
|
||||
throw MigrationFailedException.NotEnoughSpace()
|
||||
throw MigrationFailedException.NotEnoughSpace(error.requiredSpace)
|
||||
}
|
||||
else -> throw Exception(error.description)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue