Grammatical corrections in exception messages

Fixed a few grammatical errors in LightningLikePaymentHandler.
This commit is contained in:
Steven Horn 2019-01-15 12:21:31 +00:00 committed by GitHub
parent 43295c9c57
commit b28a547dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ namespace BTCPayServer.Payments.Lightning
} }
catch (OperationCanceledException) when (cts.IsCancellationRequested) catch (OperationCanceledException) when (cts.IsCancellationRequested)
{ {
throw new PaymentMethodUnavailableException($"The lightning node did not replied in a timely maner"); throw new PaymentMethodUnavailableException($"The lightning node did not reply in a timely maner");
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -78,7 +78,7 @@ namespace BTCPayServer.Payments.Lightning
} }
catch (OperationCanceledException) when (cts.IsCancellationRequested) catch (OperationCanceledException) when (cts.IsCancellationRequested)
{ {
throw new PaymentMethodUnavailableException($"The lightning node did not replied in a timely manner"); throw new PaymentMethodUnavailableException($"The lightning node did not reply in a timely manner");
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -115,7 +115,7 @@ namespace BTCPayServer.Payments.Lightning
} }
if (address == null) if (address == null)
throw new PaymentMethodUnavailableException($"DNS did not resolved {nodeInfo.Host}"); throw new PaymentMethodUnavailableException($"DNS did not resolve {nodeInfo.Host}");
using (var tcp = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp)) using (var tcp = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
{ {