We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f41bd7 commit 5e4f0bcCopy full SHA for 5e4f0bc
lightning/src/ln/channelmanager.rs
@@ -2386,7 +2386,7 @@ where
2386
2387
let per_peer_state = self.per_peer_state.read().unwrap();
2388
let peer_state_mutex = per_peer_state.get(&counterparty_node_id)
2389
- .ok_or_else(|| APIError::InvalidRoute{err: "No peer matching the path's first hop found!" })?;
+ .ok_or_else(|| APIError::ChannelUnavailable{err: "No peer matching the path's first hop found!".to_owned() })?;
2390
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
2391
let peer_state = &mut *peer_state_lock;
2392
if let hash_map::Entry::Occupied(mut chan) = peer_state.channel_by_id.entry(id) {
0 commit comments