Skip to content

Commit d509097

Browse files
authored
update jenkins err message (#3855)
This PR updates an error message to be more helpful.
1 parent 7550057 commit d509097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sources/jenkins/jenkins.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (s *Source) Init(aCtx context.Context, name string, jobId sources.JobID, so
123123
case *sourcespb.Jenkins_Unauthenticated:
124124
unparsedURL = conn.Endpoint
125125
default:
126-
return errors.Errorf("Invalid configuration given for source. Name: %s, Type: %s", name, s.Type())
126+
return errors.Errorf("unknown or unspecified authentication method provided for Jenkins source %q (unauthenticated scans must be explicitly configured)", name)
127127
}
128128

129129
s.url, err = url.Parse(unparsedURL)

0 commit comments

Comments
 (0)