Merge pull request #9598 from GoogleCloudPlatform/revert-9569-unclear_error

Revert "Make error msg for updating resource version more clear"
pull/6/head
Abhi Shah 2015-06-10 12:55:10 -07:00
commit 0083c13a61
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ func (e *Etcd) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool
} }
if newVersion != version { if newVersion != version {
// TODO: return the most recent version to a client? // TODO: return the most recent version to a client?
return nil, nil, kubeerr.NewConflict(e.EndpointName, name, fmt.Errorf("another client made an update to this object in resource version %d", version)) return nil, nil, kubeerr.NewConflict(e.EndpointName, name, fmt.Errorf("the resource was updated to %d", version))
} }
if err := rest.BeforeUpdate(e.UpdateStrategy, ctx, obj, existing); err != nil { if err := rest.BeforeUpdate(e.UpdateStrategy, ctx, obj, existing); err != nil {
return nil, nil, err return nil, nil, err