@@ -67,7 +67,7 @@ func OperateQueue() error {
67
67
}
68
68
69
69
if len (operateQueueFlags .Name ) == 0 {
70
- return fmt .Errorf ("Queue name must be specified" )
70
+ return fmt .Errorf ("queue name must be specified" )
71
71
}
72
72
73
73
var action v1alpha1.Action
@@ -79,7 +79,7 @@ func OperateQueue() error {
79
79
action = v1alpha1 .CloseQueueAction
80
80
case ActionUpdate :
81
81
if operateQueueFlags .Weight == 0 {
82
- return fmt .Errorf ("When %s queue %s, weight must be specified, " +
82
+ return fmt .Errorf ("when %s queue %s, weight must be specified, " +
83
83
"the value must be greater than 0" , ActionUpdate , operateQueueFlags .Name )
84
84
}
85
85
@@ -89,9 +89,9 @@ func OperateQueue() error {
89
89
90
90
return err
91
91
case "" :
92
- return fmt .Errorf ("Action can not be null" )
92
+ return fmt .Errorf ("action can not be null" )
93
93
default :
94
- return fmt .Errorf ("Action %s invalid, valid actions are %s, %s and %s" ,
94
+ return fmt .Errorf ("action %s invalid, valid actions are %s, %s and %s" ,
95
95
operateQueueFlags .Action , ActionOpen , ActionClose , ActionUpdate )
96
96
}
97
97
0 commit comments