From 8a671b9658e2afaa61b54deb4626ad2fc84c3682 Mon Sep 17 00:00:00 2001 From: Amir Malka Date: Tue, 19 Mar 2024 11:39:26 +0200 Subject: [PATCH] fix panic when submitting report Signed-off-by: Amir Malka --- core/pkg/resultshandling/reporter/v2/reporteventreceiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go index a568de56..ece4e2d6 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go @@ -76,7 +76,7 @@ func (report *ReportEventReceiver) Submit(ctx context.Context, opaSessionObj *ca } if err := report.prepareReport(opaSessionObj); err != nil { - return fmt.Errorf("failed to submit scan results. url: '%s', reason: %s", report.getReportUrl(), err.Error()) + return fmt.Errorf("failed to submit scan results. reason: %s", err.Error()) } logger.L().Debug("", helpers.String("account ID", report.GetAccountID()))