mirror of
https://github.com/moby/moby.git
synced 2026-08-04 15:11:00 +00:00
Optimization a error description
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
(cherry picked from commit 6c021893aa)
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
committed by
Vincent Demeester
parent
d01138c162
commit
aa5ac38f41
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user