Skip to content

Commit

Permalink
fix err messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-daniell committed Jan 4, 2024
1 parent 8167b00 commit 13d7dc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,16 @@ func (p *provider) CancelOrder(orderId, apiKey string) (string, error) {
func (p *provider) SubscribeOrderbook() (string, error) {
req, err := util.CreateSubscribeOrderbookPayload(p.lastId)
if err != nil {
return "", fmt.Errorf("error creating ping payload: %s", err)
return "", fmt.Errorf("subscribe_orderbook error creating payload: %s", err)
}
err = p.Send(req)
if err != nil {
return "", fmt.Errorf("error sending ping request: %s", err)
return "", fmt.Errorf("subscribe_orderbook error sending request: %s", err)
}

res, err := p.Receive()
if err != nil {
return "", fmt.Errorf("error getting response: %s", err)
return "", fmt.Errorf("subscribe_orderbook error getting response: %s", err)
}

return string(res), nil
Expand Down

0 comments on commit 13d7dc8

Please sign in to comment.