mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Lowercase error messages
This commit is contained in:
parent
3d6d151d6d
commit
50d246ecf7
@ -18,8 +18,8 @@ var configGetCmd = &cobra.Command{
|
|||||||
if !keyExists {
|
if !keyExists {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"key": args[0],
|
"key": args[0],
|
||||||
"suggestions": "Try looking up the available configuration keys: psu config ls",
|
"suggestions": "try looking up the available configuration keys: psu config ls",
|
||||||
}).Fatal("Unknown configuration key")
|
}).Fatal("unknown configuration key")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get config
|
// Get config
|
||||||
|
@ -20,8 +20,8 @@ var configSetCmd = &cobra.Command{
|
|||||||
if !keyExists {
|
if !keyExists {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"key": args[0],
|
"key": args[0],
|
||||||
"suggestions": "Try looking up the available configuration keys: psu config ls",
|
"suggestions": "try looking up the available configuration keys: psu config ls",
|
||||||
}).Fatal("Unknown configuration key")
|
}).Fatal("unknown configuration key")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set config
|
// Set config
|
||||||
|
@ -86,8 +86,8 @@ var stackRemoveCmd = &cobra.Command{
|
|||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"stack": stackName,
|
"stack": stackName,
|
||||||
"endpoint": endpointId,
|
"endpoint": endpointId,
|
||||||
"suggestions": fmt.Sprintf("Try with a different endpoint: psu stack rm %s --endpoint ENDPOINT_ID", stackName),
|
"suggestions": fmt.Sprintf("try with a different endpoint: psu stack rm %s --endpoint ENDPOINT_ID", stackName),
|
||||||
}).Fatal("Stack does not exist")
|
}).Fatal("stack does not exist")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
// Something else happened
|
// Something else happened
|
||||||
|
@ -9,6 +9,6 @@ func CheckError(err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"message": err.Error(),
|
"message": err.Error(),
|
||||||
}).Fatal("Error")
|
}).Fatal("error")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user