fix: Kindness error message in reporting (#601)

This commit is contained in:
Kota Kanbe
2018-02-12 10:57:09 +09:00
committed by GitHub
parent d926b7fd6d
commit 7971bdf7f7

View File

@@ -188,6 +188,9 @@ func FillWithOval(r *models.ScanResult) (err error) {
case c.ServerTypePseudo:
return nil
default:
if r.Family == "" {
return fmt.Errorf("Probably an error occurred during scanning. Check the error message")
}
return fmt.Errorf("OVAL for %s is not implemented yet", r.Family)
}