improve error message [skip ci]
OmarHatem committed
Nov 26, 2025 at 02:53 UTC
ac42ddf1878984cd531f67d8830ed47542c39ca6
1 file changed
+1
-1
lib/view_model/restore/wallet_restore_from_qr_code.dart
+1
-1
@@ -111,7 +111,7 @@ class WalletRestoreFromQRCode {
111
112
static Future<RestoredWallet> scanQRCodeForRestoring(BuildContext context) async {
113
String? code = await presentQRScanner(context);
114
- if (code == null) throw Exception("Unexpected scan QR code value: aborted");
114
+ if (code == null) throw Exception("QR scan is cancelled");
115
if (code.isEmpty) throw Exception('Unexpected scan QR code value: value is empty');
116
117
if (code.startsWith("[")) code = code.substring(code.indexOf("]") + 1);