Add additional error message if payout fail with no route

This commit is contained in:
nicolas.dorier 2024-11-11 12:09:17 +09:00
parent 7e7d4086cd
commit 72fd2ec424
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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 })