Skip to content

Commit

Permalink
pkg/exchange: print more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bailantaotao committed Feb 20, 2024
1 parent 7436a7e commit 516c5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exchange/okex/okexapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,5 @@ func (a APIResponse) Validate() error {
}

func (a APIResponse) Error() error {
return fmt.Errorf("retCode: %s, retMsg: %s", a.Code, a.Message)
return fmt.Errorf("retCode: %s, retMsg: %s, data: %s", a.Code, a.Message, string(a.Data))
}

0 comments on commit 516c5e8

Please sign in to comment.