Merge pull request #28690 from zteBill/volume-errorinfo-inexact

repeated volume create information
This commit is contained in:
Vincent Demeester 2017-01-15 17:10:28 +01:00 committed by GitHub
commit fa4f09194f

View file

@ -275,6 +275,9 @@ func (s *VolumeStore) CreateWithRef(name, driverName, ref string, opts, labels m
v, err := s.create(name, driverName, opts, labels)
if err != nil {
if _, ok := err.(*OpErr); ok {
return nil, err
}
return nil, &OpErr{Err: err, Name: name, Op: "create"}
}