Optimization a error description

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
Yanqiang Miao 2016-12-30 11:58:39 +08:00
parent a331056268
commit 6c021893aa
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (ps *Store) GetV2Plugin(refOrID string) (*v2.Plugin, error) {
func (ps *Store) validateName(name string) error {
for _, p := range ps.plugins {
if p.Name() == name {
return errors.Errorf("%v already exists", name)
return errors.Errorf("plugin %q already exists", name)
}
}
return nil