mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +00:00
Fix agent config reading error handling (#2008)
Currently for non-existing config file it would report error instead of info message
This commit is contained in:
parent
1b646a28b4
commit
724a3bf56e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func readAgentConfig(agentConfigPath string) AgentConfig {
|
|||
|
||||
rawAgentConf, err := os.ReadFile(agentConfigPath)
|
||||
if err != nil {
|
||||
if !os.IsNotExist(err) {
|
||||
if os.IsNotExist(err) {
|
||||
log.Info().Msgf("no agent config found at '%s', start with defaults", agentConfigPath)
|
||||
} else {
|
||||
log.Error().Err(err).Msgf("could not open agent config at '%s'", agentConfigPath)
|
||||
|
|
Loading…
Reference in a new issue