[cli] fix Generator's error messages

Invalid variables are used when format error messages. This change
fixes them.
This commit is contained in:
Cao Shufeng
2017-03-11 01:46:56 -05:00
parent c2907e4cdc
commit b2f530d756
4 changed files with 20 additions and 20 deletions

View File

@@ -66,7 +66,7 @@ func (s ConfigMapGeneratorV1) Generate(genericParams map[string]interface{}) (ru
if found {
fromLiteralArray, isArray := fromLiteralStrings.([]string)
if !isArray {
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
return nil, fmt.Errorf("expected []string, found :%v", fromLiteralStrings)
}
delegate.LiteralSources = fromLiteralArray
delete(genericParams, "from-literal")