fix error info

pull/58/head
tanshanshan 2018-09-04 17:14:12 +08:00
parent 058b26f38e
commit 19c9df95ad
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func (cml *ConfigMapLock) Create(ler LeaderElectionRecord) error {
// Update will update an existing annotation on a given resource.
func (cml *ConfigMapLock) Update(ler LeaderElectionRecord) error {
if cml.cm == nil {
return errors.New("endpoint not initialized, call get or create first")
return errors.New("configmap not initialized, call get or create first")
}
recordBytes, err := json.Marshal(ler)
if err != nil {