commit 3269af14a4fdaeb2740a0582f6b5ab8d92372336
parent b27398d2a597af8a60b507db1f8ef97c50c0619b
Author: Joel-Haeberli <haebu@rubigen.ch>
Date: Sun, 2 Jun 2024 10:00:38 +0200
log: enhance logging
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/c2ec/proc-retrier.go b/c2ec/proc-retrier.go
@@ -94,6 +94,12 @@ func attest(withdrawal *Withdrawal, errs chan error) {
}
client := PROVIDER_CLIENTS[provider.Name]
+ if client == nil {
+ err := fmt.Errorf("the provider client for provider with name=%s is not configured", provider.Name)
+ LogError("proc-retrier", err)
+ errs <- err
+ return
+ }
transaction, err := client.GetTransaction(*withdrawal.ProviderTransactionId)
if err != nil {
LogError("proc-retrier", err)