Skip to content

Commit

Permalink
refactor: hide config not file error
Browse files Browse the repository at this point in the history
When the config file is not found the error will be suppresed but
it will be displayed in the debug messages with the `--debug` extra
arg.

Signed-off-by: Sebastian Webber <[email protected]>
  • Loading branch information
sebastianwebber committed Mar 20, 2024
1 parent c308094 commit 807b625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func loadConfig() ([]huh.Option[string], []huh.Option[string], []huh.Option[string], bool, error) {
filePath, err := config.FindConfigFile()
if err != nil {
log.Warn("Error finding config file", "error", err)
log.Debug("Error finding config file", "error", err)
return config.DefaultPrefixes, nil, nil, true, nil
}

Expand Down

0 comments on commit 807b625

Please sign in to comment.