From 35b2b350a0db13c072f33efa121182d725a66d4c Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Thu, 26 May 2022 11:42:24 +0300 Subject: [PATCH] print submit error --- core/pkg/resultshandling/reporter/v2/reporteventreceiver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go index 15e2c597..96bca9a2 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go @@ -57,8 +57,7 @@ func (report *ReportEventReceiver) Submit(opaSessionObj *cautils.OPASessionObj) if err == nil { report.generateMessage() } else { - - err = fmt.Errorf("failed to submit scan results. url: '%s'", report.GetURL()) + err = fmt.Errorf("failed to submit scan results. url: '%s', reason: %s", report.GetURL(), err.Error()) } logger.L().Debug("", helpers.String("account ID", report.customerGUID))