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 {
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"key": args[0],
|
||||
"suggestions": "Try looking up the available configuration keys: psu config ls",
|
||||
}).Fatal("Unknown configuration key")
|
||||
"suggestions": "try looking up the available configuration keys: psu config ls",
|
||||
}).Fatal("unknown configuration key")
|
||||
}
|
||||
|
||||
// Get config
|
||||
|
@ -20,8 +20,8 @@ var configSetCmd = &cobra.Command{
|
||||
if !keyExists {
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"key": args[0],
|
||||
"suggestions": "Try looking up the available configuration keys: psu config ls",
|
||||
}).Fatal("Unknown configuration key")
|
||||
"suggestions": "try looking up the available configuration keys: psu config ls",
|
||||
}).Fatal("unknown configuration key")
|
||||
}
|
||||
|
||||
// Set config
|
||||
|
@ -86,8 +86,8 @@ var stackRemoveCmd = &cobra.Command{
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"stack": stackName,
|
||||
"endpoint": endpointId,
|
||||
"suggestions": fmt.Sprintf("Try with a different endpoint: psu stack rm %s --endpoint ENDPOINT_ID", stackName),
|
||||
}).Fatal("Stack does not exist")
|
||||
"suggestions": fmt.Sprintf("try with a different endpoint: psu stack rm %s --endpoint ENDPOINT_ID", stackName),
|
||||
}).Fatal("stack does not exist")
|
||||
}
|
||||
default:
|
||||
// Something else happened
|
||||
|
@ -9,6 +9,6 @@ func CheckError(err error) {
|
||||
if err != nil {
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"message": err.Error(),
|
||||
}).Fatal("Error")
|
||||
}).Fatal("error")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user