Skip to content

Commit

Permalink
chore(translate): enable Go 1.13 error wrapping (#6792)
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Oct 3, 2022
1 parent 2eb3b28 commit 36a45df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translate/translate.go
Expand Up @@ -58,11 +58,11 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error
o = append(o, opts...)
httpClient, endpoint, err := htransport.NewClient(ctx, o...)
if err != nil {
return nil, fmt.Errorf("dialing: %v", err)
return nil, fmt.Errorf("dialing: %w", err)
}
rawService, err := raw.New(httpClient)
if err != nil {
return nil, fmt.Errorf("translate client: %v", err)
return nil, fmt.Errorf("translate client: %w", err)
}
rawService.BasePath = endpoint
return &Client{raw: rawService}, nil
Expand Down

0 comments on commit 36a45df

Please sign in to comment.