Skip to content

Commit

Permalink
Update js/modules/k6/grpc/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Bespalov <olegbespalov@gmail.com>
  • Loading branch information
chrismoran-mica and olegbespalov authored Jul 12, 2023
1 parent f71d3e0 commit c35a3b1
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 @@ -115,7 +115,7 @@ func (c *Client) LoadProtoset(protosetPath string) ([]MethodInfo, error) {
func decryptPrivateKey(key, password []byte) ([]byte, error) {
block, _ := pem.Decode(key)
if block == nil {
return nil, fmt.Errorf("failed to decode PEM key")
return nil, errors.New("failed to decode PEM key")
}

blockType := block.Type
Expand Down

0 comments on commit c35a3b1

Please sign in to comment.