Skip to content

Commit

Permalink
chore(segment): expose error origin on builders
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch000001 committed Mar 2, 2024
1 parent 6de21b6 commit 2d72504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions segment/hbci_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (b *builder) AccountTransactionRequest(account domain.AccountConnection, al
}
request, err := AccountTransactionRequestBuilder(versions)
if err != nil {
return nil, err
return nil, fmt.Errorf("error building account transaction request (HKKAZ): %w", err)
}
return request(account, allAccounts), nil
}
Expand All @@ -99,7 +99,7 @@ func (b *builder) SepaAccountTransactionRequest(account domain.InternationalAcco
}
request, err := SepaAccountTransactionRequestBuilder(versions)
if err != nil {
return nil, err
return nil, fmt.Errorf("error building sepa account transaction request (HKKAZ): %w", err)
}
return request(account, allAccounts), nil
}
Expand All @@ -110,7 +110,7 @@ func (b *builder) StatusProtocolRequest(from, to time.Time, maxEntries int, cont
}
request, err := StatusProtocolRequestBuilder(versions)
if err != nil {
return nil, err
return nil, fmt.Errorf("error building status protocol request (HKPRO): %w", err)
}
return request(from, to, maxEntries, continuationReference), nil
}

0 comments on commit 2d72504

Please sign in to comment.