[golang] update error handling and bootstrap trade procurement
This commit is contained in:
parent
fd06283b8d
commit
a692a38d28
10 changed files with 66 additions and 50 deletions
|
@ -34,7 +34,7 @@ func (c *Client) MyContracts() ([]model.Contract, error) {
|
|||
uriRef := url.URL{Path: "my/contracts"}
|
||||
var contracts []model.Contract
|
||||
if err := c.Send("GET", &uriRef, nil, &contracts); err != nil {
|
||||
return nil, fmt.Errorf("failed to get contracts: %w", err)
|
||||
return nil, fmt.Errorf("failed API request: %w", err)
|
||||
}
|
||||
return contracts, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue