From 6c021893aa12088c0ad5b18111cfa80d6008a78f 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 --- plugin/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/store.go b/plugin/store.go index 3c780ab93e..180fbf02c4 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