Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

honey doesn't fail if config is bad or unparsable #8

Closed
shamil opened this issue Nov 9, 2021 · 0 comments
Closed

honey doesn't fail if config is bad or unparsable #8

shamil opened this issue Nov 9, 2021 · 0 comments
Assignees

Comments

@shamil
Copy link
Member

shamil commented Nov 9, 2021

I think the following code should check for error not just err == null

honey/pkg/config/config.go

Lines 173 to 175 in 44a568f

if err := configFile.ReadInConfig(); err == nil {
log.Debugln("Using config file:", configFile.ConfigFileUsed())
}

Shareed2k added a commit that referenced this issue Nov 10, 2021
fix #8 honey doesn't fail if config is bad or unparsable
Shareed2k added a commit that referenced this issue Nov 10, 2021
fix #8 honey doesn't fail if config is bad or unparsable
Shareed2k added a commit that referenced this issue Nov 10, 2021
fix #8 honey doesn't fail if config is bad or unparsable
Shareed2k added a commit that referenced this issue Nov 10, 2021
fix #8 honey doesn't fail if config is bad or unparsable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants