Skip to content

Commit

Permalink
fix: silently continue of config is not foun
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Mar 29, 2024
1 parent 4c4dfb3 commit 4f8d471
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,9 @@ func ParseConfigFile(fetcher ConfigDirectoryFetcher) Config {
config := Config{}
configDir, err := fetcher.GetUserConfigDir()
if err != nil {
fmt.Printf(
"Error determining the user config directory: %s\nUsing default config instead",
err,
)
return config
}
configPath := filepath.Join(configDir, "sesh", "sesh.toml")

if err := parseConfigFromFile(configPath, &config); err != nil {
fmt.Printf(
"Error parsing config file: %s\nUsing default config instead",
err,
)
}
parseConfigFromFile(configPath, &config)
return config
}

0 comments on commit 4f8d471

Please sign in to comment.