@@ -36,7 +36,7 @@ pub enum InitFailure {
3636 /// Failure to start the LDK node.
3737 LdkNodeStartFailure ( String ) ,
3838 /// Failure in the trusted wallet implementation.
39- TrustedFailure ,
39+ TrustedFailure ( String ) ,
4040}
4141
4242impl Display for InitFailure {
@@ -46,7 +46,7 @@ impl Display for InitFailure {
4646 InitFailure :: ConfigError ( e) => write ! ( f, "Config error: {e}" ) ,
4747 InitFailure :: LdkNodeBuildFailure ( e) => write ! ( f, "Failed to build the LDK node: {e}" ) ,
4848 InitFailure :: LdkNodeStartFailure ( e) => write ! ( f, "Failed to start the LDK node: {e}" ) ,
49- InitFailure :: TrustedFailure => write ! ( f, "Failed to create the trusted wallet" ) ,
49+ InitFailure :: TrustedFailure ( e ) => write ! ( f, "Failed to create the trusted wallet: {e} " ) ,
5050 }
5151 }
5252}
@@ -67,7 +67,7 @@ impl From<OrangeInitFailure> for InitFailure {
6767 OrangeInitFailure :: LdkNodeStartFailure ( e) => {
6868 InitFailure :: LdkNodeStartFailure ( e. to_string ( ) )
6969 } ,
70- OrangeInitFailure :: TrustedFailure ( _e ) => InitFailure :: TrustedFailure ,
70+ OrangeInitFailure :: TrustedFailure ( e ) => InitFailure :: TrustedFailure ( e . to_string ( ) ) ,
7171 }
7272 }
7373}
@@ -84,7 +84,7 @@ pub enum WalletError {
8484 /// Failure in the LDK node.
8585 LdkNodeFailure ( String ) ,
8686 /// Failure in the trusted wallet implementation.
87- TrustedFailure ,
87+ TrustedFailure ( String ) ,
8888 /// Failure to parse payment instructions.
8989 PaymentInstructionsParseError ,
9090 /// Failure to build payment info.
@@ -95,7 +95,7 @@ impl Display for WalletError {
9595 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
9696 match self {
9797 WalletError :: LdkNodeFailure ( e) => write ! ( f, "Failure from LDK node: {e}" ) ,
98- WalletError :: TrustedFailure => write ! ( f, "Failure from trusted wallet" ) ,
98+ WalletError :: TrustedFailure ( e ) => write ! ( f, "Failure from trusted wallet: {e} " ) ,
9999 WalletError :: PaymentInstructionsParseError => {
100100 write ! ( f, "Failure to parse payment instructions" )
101101 } ,
@@ -108,7 +108,7 @@ impl From<OrangeWalletError> for WalletError {
108108 fn from ( e : OrangeWalletError ) -> Self {
109109 match e {
110110 OrangeWalletError :: LdkNodeFailure ( e) => WalletError :: LdkNodeFailure ( e. to_string ( ) ) ,
111- OrangeWalletError :: TrustedFailure ( _e ) => WalletError :: TrustedFailure ,
111+ OrangeWalletError :: TrustedFailure ( e ) => WalletError :: TrustedFailure ( e . to_string ( ) ) ,
112112 }
113113 }
114114}
0 commit comments