Co-authored-by: Bryan White <bryanchriswhite@gmail.com>
This commit is contained in:
parent
1ee1b4c8cd
commit
59f8183aec
@ -52,7 +52,7 @@ func ReadFromClientConfig(ctx client.Context) (client.Context, error) {
|
||||
configFilePath := filepath.Join(configPath, "client.toml")
|
||||
conf := DefaultConfig()
|
||||
|
||||
// when config.toml does not exist create and init with default values
|
||||
// when client.toml does not exist create and init with default values
|
||||
if _, err := os.Stat(configFilePath); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(configPath, os.ModePerm); err != nil {
|
||||
return ctx, fmt.Errorf("couldn't make client config: %v", err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user