Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com>
  • Loading branch information
olegbespalov and codebien committed Oct 16, 2023
1 parent 04358fe commit d1d5969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (c *Client) parseInvokeParams(paramsVal goja.Value) (*invokeParams, error)
return result, fmt.Errorf("invalid timeout value: %w", err)
}
case "headers":
return result, errors.New("you should use metadata param instead of headers")
return result, errors.New("headers param is not supported anymore. Please, use metadata param instead")
default:
return result, fmt.Errorf("unknown param: %q", k)
}
Expand Down

0 comments on commit d1d5969

Please sign in to comment.