Skip to content

Commit 067380a

Browse files
committed
config: return error on Write() instead of fmt.Println
1 parent 1712302 commit 067380a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (c *Config) ActiveCluster() *Cluster {
6666
func (c *Config) Write() error {
6767
home, err := homedir.Dir()
6868
if err != nil {
69-
fmt.Println(err)
69+
return err
7070
}
7171

7272
configPath := filepath.Join(home, ".kaf", "config")

0 commit comments

Comments
 (0)