From: shaavan Date: Fri, 10 Nov 2023 12:50:16 +0000 (+0530) Subject: Log the error, when trying to forward the intercepted HTLC, but the X-Git-Tag: v0.0.119~53^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=dce514e91217bead52cbea551ccaee9c3a46581d;p=rust-lightning Log the error, when trying to forward the intercepted HTLC, but the channel is not found --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 76b7492fd..6bb19fd46 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -4185,10 +4185,14 @@ where err: format!("Channel with id {} for the passed counterparty node_id {} is still opening.", next_hop_channel_id, next_node_id) }), - None => return Err(APIError::ChannelUnavailable { - err: format!("Channel with id {} not found for the passed counterparty node_id {}", - next_hop_channel_id, next_node_id) - }) + None => { + let error = format!("Channel with id {} not found for the passed counterparty node_id {}", + next_hop_channel_id, next_node_id); + log_error!(self.logger, "{} when attempting to forward intercepted HTLC", error); + return Err(APIError::ChannelUnavailable { + err: error + }) + } } };