Skip to content

Commit 185fbc1

Browse files
authored
Merge pull request #2726 from shaavan/issue2712
Log the error, when trying to forward the intercepted HTLC, but the channel is not found
2 parents 04b16e7 + dce514e commit 185fbc1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4186,10 +4186,14 @@ where
41864186
err: format!("Channel with id {} for the passed counterparty node_id {} is still opening.",
41874187
next_hop_channel_id, next_node_id)
41884188
}),
4189-
None => return Err(APIError::ChannelUnavailable {
4190-
err: format!("Channel with id {} not found for the passed counterparty node_id {}",
4191-
next_hop_channel_id, next_node_id)
4192-
})
4189+
None => {
4190+
let error = format!("Channel with id {} not found for the passed counterparty node_id {}",
4191+
next_hop_channel_id, next_node_id);
4192+
log_error!(self.logger, "{} when attempting to forward intercepted HTLC", error);
4193+
return Err(APIError::ChannelUnavailable {
4194+
err: error
4195+
})
4196+
}
41934197
}
41944198
};
41954199

0 commit comments

Comments
 (0)