error strings should not end with punctuation

Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
yupeng
2016-12-03 15:17:18 +08:00
parent cd560926bd
commit 31c46e1d2c
5 changed files with 10 additions and 10 deletions

View File

@@ -510,13 +510,13 @@ type kops struct {
func NewKops() (*kops, error) {
if *kopsPath == "" {
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment.")
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment")
}
if *kopsCluster == "" {
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment.")
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment")
}
if *kopsState == "" {
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment.")
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment")
}
sshKey := *kopsSSHKey
if sshKey == "" {