From 7971bdf7f704b44c84458abcb1dd135938998f55 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Mon, 12 Feb 2018 10:57:09 +0900 Subject: [PATCH] fix: Kindness error message in reporting (#601) --- report/report.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report/report.go b/report/report.go index 5af4b95e..57f7cd6e 100644 --- a/report/report.go +++ b/report/report.go @@ -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) }