From 58b668a94fbf1523772bc00bbb55a1122dcf5e60 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 7 Aug 2019 10:11:36 +0200 Subject: [PATCH 1/2] ios native: pass localizedDescription as error message It will also be part of the passed NSError, but this makes the error message explicit. --- mobile/ios/lightning/LndReactModule.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/ios/lightning/LndReactModule.m b/mobile/ios/lightning/LndReactModule.m index 16cbcbd0f..3715bb0b3 100644 --- a/mobile/ios/lightning/LndReactModule.m +++ b/mobile/ios/lightning/LndReactModule.m @@ -38,7 +38,7 @@ - (instancetype)initWithResolver: (RCTPromiseResolveBlock)resolve rejecter:(RCTP } - (void)onError:(NSError *)p0 { - self.reject(@"error", @"received error", p0); + self.reject(@"error", [p0 localizedDescription], p0); } - (void)onResponse:(NSData *)p0 { From c353636c10414cfd1515c5c52600aa7b6f2a1754 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 7 Aug 2019 09:37:43 -0700 Subject: [PATCH 2/2] err.details --> err, in fee estimation error ntfn --- src/action/payment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action/payment.js b/src/action/payment.js index 1d277112e..aa271347c 100644 --- a/src/action/payment.js +++ b/src/action/payment.js @@ -247,7 +247,7 @@ class PaymentAction { this._nav.goPayBitcoinConfirm(); } catch (err) { this._notification.display({ - msg: `Fee estimation failed: ${err.details}`, + msg: `Fee estimation failed: ${err}`, err, }); }