From aa9e731996a4a55a73b4c6f72c46cad4f83354bf Mon Sep 17 00:00:00 2001 From: Rodrigo Sanchez Date: Fri, 7 Jul 2023 09:58:49 +0200 Subject: [PATCH] Show Peer not online message --- src/Services/LightningService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Services/LightningService.cs b/src/Services/LightningService.cs index 429e6254..108def48 100644 --- a/src/Services/LightningService.cs +++ b/src/Services/LightningService.cs @@ -614,6 +614,10 @@ public async Task OpenChannel(ChannelOperationRequest channelOperationRequest) // TODO: Make exception message pretty throw new RemoteCanceledFundingException(e.Message); } + if (e.Message.Contains("is not online")) + { + throw new PeerNotOnlineException($"$peer {destination.PubKey} is not online"); + } throw; } }