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))