func NewVulnerabilityError(vuls []Vulnerability) (err error) {
	err = VulnerabilitiesError{
		Vulnerabilities: vuls,
	}
	return
}
NewVulnerabilityError creates a new VulnerabilityError with the passed
Vulnerabilities.
package voucher
import "fmt"
type VulnerabilitiesError struct {
	Vulnerabilities []Vulnerability
}
func (err VulnerabilitiesError) Error() string {
	output := fmt.Sprintf("vulnernable to %d vulnerabilities: ", len(err.Vulnerabilities))
	for i, vulnerability := range err.Vulnerabilities {
		if i != 0 {
			output += ", "
		}
		output += fmt.Sprintf("%s (%s)", vulnerability.Name, vulnerability.Severity)
	}
	return output
}