update error message for config generate
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ func doConfigCmd(ctx *cli.Context) {
|
||||
default:
|
||||
// unexpected error
|
||||
log.Debug.Println(iodine.New(err, nil))
|
||||
console.Fatalln("mc: Unable to generate config file", configPath)
|
||||
console.Fatalln("DEBUG mc: Unable to generate config file", configPath)
|
||||
}
|
||||
}
|
||||
console.Infoln("mc: Configuration written to " + configPath + ". Please update your access credentials.")
|
||||
|
||||
@@ -107,7 +107,7 @@ func main() {
|
||||
}
|
||||
app.After = func(ctx *cli.Context) error {
|
||||
if !isMcConfigExist() && ctx.Command.Name != "config" {
|
||||
console.Fatalln("mc: error ``mc`` is not configured. Please run \"mc config\".")
|
||||
console.Fatalln("mc: error ``mc`` is not configured. Please run \"mc config generate\".")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user