change error message [skip ci]

This commit is contained in:
OmarHatem 2025-01-31 03:57:45 +02:00
parent a936345bfb
commit 96921d5767

View file

@ -259,7 +259,7 @@ mixin ZanoWalletApi {
final code = map!['error']!['code'] ?? '';
final message = map['error']!['message'] ?? '';
if (code == Consts.errorWrongSeed) {
throw RestoreFromSeedsException('Error restoring wallet, wrong seed');
throw RestoreFromSeedsException('Error restoring wallet\nPlease check the seed words are correct. Additionally, if you created this wallet with a passphrase please add it under the Advanced Settings page.');
} else if (code == Consts.errorAlreadyExists) {
throw RestoreFromSeedsException('Error restoring wallet, already exists');
}