]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Split up comically long error return 2023-04-handle_err_more-check
authorMatt Corallo <git@bluematt.me>
Fri, 7 Apr 2023 04:54:07 +0000 (04:54 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 7 Apr 2023 04:54:07 +0000 (04:54 +0000)
lightning/src/ln/channelmanager.rs

index ba0f17303372dba3aa4c68d5305181d6173db4a3..501665f68257cf76969514f2de087c6780441c10 100644 (file)
@@ -2811,7 +2811,13 @@ where
                                        },
                                }
                        },
-                       None => { return Err(APIError::ChannelUnavailable { err: format!("Channel with id {} not found for the passed counterparty node_id {}", log_bytes!(*temporary_channel_id), counterparty_node_id) }) },
+                       None => {
+                               return Err(APIError::ChannelUnavailable {
+                                       err: format!(
+                                               "Channel with id {} not found for the passed counterparty node_id {}",
+                                               log_bytes!(*temporary_channel_id), counterparty_node_id),
+                               })
+                       },
                };
 
                peer_state.pending_msg_events.push(events::MessageSendEvent::SendFundingCreated {