error handle change
This commit is contained in:
parent
00748f4a88
commit
7ff3914f89
@ -54,8 +54,10 @@ func creatAction(c *cli.Context) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
fmt.Println("Created: " + configPath)
|
fmt.Println("Created: " + configPath)
|
||||||
|
} else {
|
||||||
|
fmt.Println("Configuration file already exists")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user