@@ -15,8 +15,6 @@ pub enum Error {
1515 InvoiceCreationFailed ,
1616 /// An attempted payment has failed.
1717 PaymentFailed ,
18- /// A given peer info could not be parsed.
19- PeerInfoParseFailed ,
2018 /// A given peer info could not be found.
2119 PeerInfoNotFound ,
2220 /// A channel could not be opened.
@@ -35,6 +33,8 @@ pub enum Error {
3533 GossipUpdateFailed ,
3634 /// The given address is invalid.
3735 InvalidAddress ,
36+ /// The given network address is invalid.
37+ InvalidNetAddress ,
3838 /// The given public key is invalid.
3939 InvalidPublicKey ,
4040 /// The given payment hash is invalid.
@@ -68,7 +68,6 @@ impl fmt::Display for Error {
6868 Self :: ConnectionFailed => write ! ( f, "Network connection closed." ) ,
6969 Self :: InvoiceCreationFailed => write ! ( f, "Failed to create invoice." ) ,
7070 Self :: PaymentFailed => write ! ( f, "Failed to send the given payment." ) ,
71- Self :: PeerInfoParseFailed => write ! ( f, "Failed to parse the given peer information." ) ,
7271 Self :: PeerInfoNotFound => write ! ( f, "Failed to resolve the given peer information." ) ,
7372 Self :: ChannelCreationFailed => write ! ( f, "Failed to create channel." ) ,
7473 Self :: ChannelClosingFailed => write ! ( f, "Failed to close channel." ) ,
@@ -78,6 +77,7 @@ impl fmt::Display for Error {
7877 Self :: TxSyncFailed => write ! ( f, "Failed to sync transactions." ) ,
7978 Self :: GossipUpdateFailed => write ! ( f, "Failed to update gossip data." ) ,
8079 Self :: InvalidAddress => write ! ( f, "The given address is invalid." ) ,
80+ Self :: InvalidNetAddress => write ! ( f, "The given network address is invalid." ) ,
8181 Self :: InvalidPublicKey => write ! ( f, "The given public key is invalid." ) ,
8282 Self :: InvalidPaymentHash => write ! ( f, "The given payment hash is invalid." ) ,
8383 Self :: InvalidPaymentPreimage => write ! ( f, "The given payment preimage is invalid." ) ,
0 commit comments