mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +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) {
|
if (status != 0) {
|
||||||
final error = monero.Wallet_errorString(newWptr);
|
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);
|
throw WalletRestoreFromSeedException(message: error);
|
||||||
}
|
}
|
||||||
wptr = newWptr;
|
wptr = newWptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue