mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:05:27 +00:00
no changes custom template message should be INF not ERR
This commit is contained in:
parent
309018fbf4
commit
5be258f948
6
pkg/external/customtemplates/github.go
vendored
6
pkg/external/customtemplates/github.go
vendored
@ -53,7 +53,11 @@ func (customTemplate *customTemplateGitHubRepo) Update(ctx context.Context) {
|
||||
}
|
||||
err := customTemplate.pullChanges(clonePath, customTemplate.githubToken)
|
||||
if err != nil {
|
||||
gologger.Error().Msgf("%s", err)
|
||||
if strings.Contains(err.Error(), "already up-to-date") {
|
||||
gologger.Info().Msgf("%s", err)
|
||||
} else {
|
||||
gologger.Error().Msgf("%s", err)
|
||||
}
|
||||
} else {
|
||||
gologger.Info().Msgf("Repo %s/%s successfully pulled the changes.\n", customTemplate.owner, customTemplate.reponame)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user