Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashou committed Dec 23, 2024
1 parent 8c28d9b commit d506d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientv2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func (c *Client) unmarshal(data []byte, res any) error {
}

var err error
if resp.Errors != nil && len(resp.Errors) > 0 {
if len(resp.Errors) > 0 {
// try to parse standard graphql error
err = &GqlErrorList{}
if e := json.Unmarshal(data, err); e != nil {
Expand Down

0 comments on commit d506d50

Please sign in to comment.