fix panic when submitting report

Signed-off-by: Amir Malka <amirm@armosec.io>
This commit is contained in:
Amir Malka
2024-03-19 11:39:26 +02:00
parent b7a4f82968
commit 8a671b9658
@@ -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()))