diff --git a/validate_json_test.go b/validate_json_test.go index 6269759..eb1a66e 100644 --- a/validate_json_test.go +++ b/validate_json_test.go @@ -18,6 +18,7 @@ package cyclonedx import ( + "errors" "fmt" "github.com/xeipuuv/gojsonschema" @@ -60,5 +61,5 @@ func (jv jsonValidator) Validate(bom []byte, specVersion SpecVersion) error { errSummary += fmt.Sprintf("\n - %s", verr.String()) } - return fmt.Errorf(errSummary) + return errors.New(errSummary) }