1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #29789 from miaoyq/optimization-error-description

Optimization a error description
This commit is contained in:
Tibor Vass 2017-01-03 13:01:22 -08:00 committed by GitHub
commit ef9935ce8f

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