Skip to content

Commit

Permalink
fix: update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed May 9, 2024
1 parent c80b2a7 commit cc96327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cms/signed.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func ParseSignedData(berData []byte) (*ParsedSignedData, error) {
}

if signedData.Version != 3 {
return nil, SyntaxError{Message: fmt.Sprintf("invalid signed data version: got %d, want 3", signedData.Version)}
return nil, SyntaxError{Message: fmt.Sprintf("unsupported signed data version: got %d, want 3", signedData.Version)}

Check warning on line 73 in internal/cms/signed.go

View check run for this annotation

Codecov / codecov/patch

internal/cms/signed.go#L73

Added line #L73 was not covered by tests
}

certs, err := x509.ParseCertificates(signedData.Certificates.Bytes)
Expand Down

0 comments on commit cc96327

Please sign in to comment.