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

This commit is contained in:
cyan
2025-02-13 09:39:38 +03:00
committed by GitHub
parent 8291132ca1
commit f98dd7dd7a
+5
View File
@@ -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;