From c270ee2a023f2ed3bacbd847bbeb6583f7db9ddc Mon Sep 17 00:00:00 2001 From: Rob Dimsdale-Zucker Date: Fri, 22 Apr 2022 12:08:44 -0400 Subject: [PATCH] Fix typo in CPE-parsing error (#966) --- syft/pkg/cpe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syft/pkg/cpe.go b/syft/pkg/cpe.go index 85290e50e..1d6402726 100644 --- a/syft/pkg/cpe.go +++ b/syft/pkg/cpe.go @@ -30,7 +30,7 @@ func NewCPE(cpeStr string) (CPE, error) { // get a CPE object based on the given string --don't validate yet since it may be possible to escape select cases on the callers behalf c, err := newCPEWithoutValidation(cpeStr) if err != nil { - return CPE{}, fmt.Errorf("unable to prase CPE string: %w", err) + return CPE{}, fmt.Errorf("unable to parse CPE string: %w", err) } // ensure that this CPE can be validated after being fully sanitized