Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit e36fda3

Browse files
committed
Include actual namespace in error message
1 parent d55507a commit e36fda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/controllers/execution/scans/scan_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (r *ScanReconciler) startScan(scan *executionv1.Scan) error {
5050
log.V(7).Info("Unable to fetch ScanType")
5151

5252
scan.Status.State = "Errored"
53-
scan.Status.ErrorDescription = fmt.Sprintf("Configured ScanType '%s' not found in Scans Namespace. You'll likely need to deploy the ScanType.", scan.Spec.ScanType)
53+
scan.Status.ErrorDescription = fmt.Sprintf("Configured ScanType '%s' not found in '%s' namespace. You'll likely need to deploy the ScanType.", scan.Spec.ScanType, scan.Namespace)
5454
if err := r.Status().Update(ctx, scan); err != nil {
5555
r.Log.Error(err, "unable to update Scan status")
5656
return err

0 commit comments

Comments
 (0)