Skip to content

Commit

Permalink
use join to wrap 2 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored and Pantani committed Nov 1, 2023
1 parent 2df7c9c commit f132d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ignite/pkg/cosmosclient/cosmosclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ func (c *Client) makeSureAccountHasTokens(ctx context.Context, address string) e
// request coins from the faucet.
faucetResp, err := c.faucetClient.Transfer(ctx, cosmosfaucet.TransferRequest{AccountAddress: address})
if err != nil {
return errors.Wrap(errCannotRetrieveFundsFromFaucet, err.Error())
return errors.Join(errCannotRetrieveFundsFromFaucet, err)
}
if faucetResp.Error != "" {
return errors.Wrap(errCannotRetrieveFundsFromFaucet, faucetResp.Error)
Expand Down

0 comments on commit f132d73

Please sign in to comment.