Skip to content

Commit ae23e73

Browse files
committed
Log the error, when trying to forward the intercepted HTLC, but the
channel is not found
1 parent 6e40e5f commit ae23e73

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4185,10 +4185,15 @@ where
41854185
err: format!("Channel with id {} for the passed counterparty node_id {} is still opening.",
41864186
next_hop_channel_id, next_node_id)
41874187
}),
4188-
None => return Err(APIError::ChannelUnavailable {
4189-
err: format!("Channel with id {} not found for the passed counterparty node_id {}",
4190-
next_hop_channel_id, next_node_id)
4191-
})
4188+
None => {
4189+
let error = format!("Channel with id {} not found for the passed counterparty node_id {}",
4190+
next_hop_channel_id, next_node_id);
4191+
// Log the Error
4192+
log_error!(self.logger, "{}", error);
4193+
return Err(APIError::ChannelUnavailable {
4194+
err: error
4195+
})
4196+
}
41924197
}
41934198
};
41944199

0 commit comments

Comments
 (0)