Skip to content

Find, verify, and analyze leaked credentials

update jenkins err message (#3855)

Cody Rosed509097384d2
diff --git a/pkg/sources/jenkins/jenkins.go b/pkg/sources/jenkins/jenkins.go
index 704208d5f..a843ad5f6 100644
--- a/pkg/sources/jenkins/jenkins.go
+++ b/pkg/sources/jenkins/jenkins.go
@@ -123,7 +123,7 @@ func (s *Source) Init(aCtx context.Context, name string, jobId sources.JobID, so
case *sourcespb.Jenkins_Unauthenticated:
unparsedURL = conn.Endpoint
default:
- return errors.Errorf("Invalid configuration given for source. Name: %s, Type: %s", name, s.Type())
+ return errors.Errorf("unknown or unspecified authentication method provided for Jenkins source %q (unauthenticated scans must be explicitly configured)", name)
}
s.url, err = url.Parse(unparsedURL)