From 3190b877aecbea80c08d2bfb87a930c317702e3b Mon Sep 17 00:00:00 2001 From: kota kanbe Date: Wed, 1 Jun 2016 09:28:52 +0900 Subject: [PATCH] Fix error msg when go-cve-dictionary is unavailable #84 --- commands/scan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/scan.go b/commands/scan.go index f7434800..f9cdf1d5 100644 --- a/commands/scan.go +++ b/commands/scan.go @@ -273,8 +273,8 @@ func (p *ScanCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) } if ok, err := cveapi.CveClient.CheckHealth(); !ok { - Log.Errorf("CVE HTTP server is not running. %#v", cveapi.CveClient) - Log.Fatal(err) + Log.Errorf("CVE HTTP server is not running. err: %s", err) + Log.Errorf("Run go-cve-dictionary as server mode or specify -cve-dictionary-dbpath option") return subcommands.ExitFailure }