mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
fix panic when error is returned from SubmitReport (#1640)
Signed-off-by: Amir Malka <amirm@armosec.io>
This commit is contained in:
@@ -249,7 +249,7 @@ func (report *ReportEventReceiver) sendReport(postureReport *reporthandlingv2.Po
|
||||
report.tenantConfig.DeleteCredentials()
|
||||
}
|
||||
|
||||
return fmt.Errorf("%s, %v:%s", report.getReportUrl(), err, strResponse)
|
||||
return fmt.Errorf("%w:%s", err, strResponse)
|
||||
}
|
||||
|
||||
// message is taken only from last report
|
||||
|
||||
Reference in New Issue
Block a user