Lowercase error messages

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-10 18:28:00 -04:00
parent 3d6d151d6d
commit 50d246ecf7
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -9,6 +9,6 @@ func CheckError(err error) {
if err != nil {
logrus.WithFields(logrus.Fields{
"message": err.Error(),
}).Fatal("Error")
}).Fatal("error")
}
}