From aa5ac38f41ae6fba5ce36f9c3dcc499d97badf0b Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Fri, 30 Dec 2016 11:58:39 +0800 Subject: [PATCH] Optimization a error description Signed-off-by: Yanqiang Miao (cherry picked from commit 6c021893aa12088c0ad5b18111cfa80d6008a78f) Signed-off-by: Victor Vieux Signed-off-by: Vincent Demeester --- plugin/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/store.go b/plugin/store.go index bb57e80665..5f95defdde 100644 --- a/plugin/store.go +++ b/plugin/store.go @@ -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