mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-04-11 12:41:53 +00:00
Use different error message for invalid seed restore (#2029)
This commit is contained in:
parent
8291132ca1
commit
f98dd7dd7a
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ void restoreWalletFromSeedSync(
|
|||
|
||||
if (status != 0) {
|
||||
final error = monero.Wallet_errorString(newWptr);
|
||||
if (error.contains('word list failed verification')) {
|
||||
throw WalletRestoreFromSeedException(
|
||||
message: "Seed verification failed, please make sure you entered the correct seed with the correct words order",
|
||||
);
|
||||
}
|
||||
throw WalletRestoreFromSeedException(message: error);
|
||||
}
|
||||
wptr = newWptr;
|
||||
|
|
Loading…
Reference in a new issue