Use different error message for invalid seed restore (#2029)

This commit is contained in:
cyan 2025-02-13 07:39:38 +01:00 committed by GitHub
parent 8291132ca1
commit f98dd7dd7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;