Skip to content

Commit 67d70a1

Browse files
f - Update failure to query Channel error messages 2
Update message for update_channel_config API
1 parent cdc0f13 commit 67d70a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,7 +3107,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
31073107
for channel_id in channel_ids {
31083108
if !peer_state.channel_by_id.contains_key(channel_id) {
31093109
return Err(APIError::ChannelUnavailable {
3110-
err: format!("Channel with ID {} was not found", log_bytes!(*channel_id)),
3110+
err: format!("Channel with ID {} was not found for the passed counterparty_node_id {}", log_bytes!(*channel_id), counterparty_node_id),
31113111
});
31123112
}
31133113
}
@@ -3125,6 +3125,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
31253125
});
31263126
}
31273127
}
3128+
} else {
3129+
return Err(APIError::APIMisuseError{ err: format!("Can't find a peer with a node_id matching the passed counterparty_node_id {}", counterparty_node_id) });
31283130
}
31293131
}
31303132
Ok(())

0 commit comments

Comments
 (0)