@@ -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.
@@ -37,6 +35,8 @@ pub enum Error {
3735 GossipUpdateFailed ,
3836 /// The given address is invalid.
3937 InvalidAddress ,
38+ /// The given network address is invalid.
39+ InvalidNetAddress ,
4040 /// The given public key is invalid.
4141 InvalidPublicKey ,
4242 /// The given payment hash is invalid.
@@ -70,7 +70,6 @@ impl fmt::Display for Error {
7070 Self :: ConnectionFailed => write ! ( f, "Network connection closed." ) ,
7171 Self :: InvoiceCreationFailed => write ! ( f, "Failed to create invoice." ) ,
7272 Self :: PaymentFailed => write ! ( f, "Failed to send the given payment." ) ,
73- Self :: PeerInfoParseFailed => write ! ( f, "Failed to parse the given peer information." ) ,
7473 Self :: PeerInfoNotFound => write ! ( f, "Failed to resolve the given peer information." ) ,
7574 Self :: ChannelCreationFailed => write ! ( f, "Failed to create channel." ) ,
7675 Self :: ChannelClosingFailed => write ! ( f, "Failed to close channel." ) ,
@@ -81,6 +80,7 @@ impl fmt::Display for Error {
8180 Self :: TxSyncFailed => write ! ( f, "Failed to sync transactions." ) ,
8281 Self :: GossipUpdateFailed => write ! ( f, "Failed to update gossip data." ) ,
8382 Self :: InvalidAddress => write ! ( f, "The given address is invalid." ) ,
83+ Self :: InvalidNetAddress => write ! ( f, "The given network address is invalid." ) ,
8484 Self :: InvalidPublicKey => write ! ( f, "The given public key is invalid." ) ,
8585 Self :: InvalidPaymentHash => write ! ( f, "The given payment hash is invalid." ) ,
8686 Self :: InvalidPaymentPreimage => write ! ( f, "The given payment preimage is invalid." ) ,
0 commit comments