Skip to content

Commit f04aba8

Browse files
committed
feat: allow missing config file
1 parent b33ea83 commit f04aba8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

configurator/configurator.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ func (c *RealConfigurator) getConfigFileFromUserConfigDir() (model.Config, error
3737
}
3838
userConfigDir := path.Join(userHomeDir, ".config")
3939
configFilePath := c.configFilePath(userConfigDir)
40-
file, err := c.os.ReadFile(configFilePath)
41-
if err != nil {
42-
return config, fmt.Errorf("couldn't read config file: %q", err)
43-
}
40+
file, _ := c.os.ReadFile(configFilePath)
41+
// TODO: add to debugging logs
42+
// if err != nil {
43+
// return config, fmt.Errorf("couldn't read config file: %q", err)
44+
// }
4445
err = toml.Unmarshal(file, &config)
4546
if err != nil {
4647
return config, fmt.Errorf("couldn't unmarshal config file: %q", err)

0 commit comments

Comments
 (0)