Skip to content

Commit

Permalink
Show Peer not online message
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Sanchez committed Jul 7, 2023
1 parent 0629418 commit aa9e731
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/LightningService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit aa9e731

Please sign in to comment.