mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
Add additional error message if payout fail with no route
This commit is contained in:
parent
7e7d4086cd
commit
72fd2ec424
@ -241,7 +241,8 @@ public class LightningAutomatedPayoutProcessor : BaseAutomatedPayoutProcessor<Li
|
||||
}, cancellationToken);
|
||||
if (pay is { Result: PayResult.CouldNotFindRoute })
|
||||
{
|
||||
errorReason ??= $"Unable to find a route for the payment, check your channel liquidity";
|
||||
var err = pay.ErrorDetail is null ? "" : $" ({pay.ErrorDetail})";
|
||||
errorReason ??= $"Unable to find a route for the payment, check your channel liquidity{err}";
|
||||
success = false;
|
||||
}
|
||||
else if (pay is { Result: PayResult.Error })
|
||||
|
Loading…
Reference in New Issue
Block a user