warn on failure to create vuln page

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-03-04 19:55:27 -08:00
parent c92a83c999
commit 62a9ca937c
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -294,7 +294,8 @@ func createStaticIndex(r *registry.Registry, staticDir, clairURI string) error {
if clairURI != "" {
if err := createVulnStaticPage(r, staticDir, clairURI, repo, tag); err != nil {
return fmt.Errorf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
//return fmt.Errorf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
logrus.Warnf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
}
newrepo.VulnURI = filepath.Join(repo, tag, "vulns.txt")
}