1
0
Fork 0
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:
Evgenii Kozlov 2025-03-28 12:48:14 +01:00 committed by GitHub
parent 82ac6e47ec
commit 68eff667fb
Signed by: github
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 11 deletions

View file

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