Explorar o código

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

repeated volume create information
Vincent Demeester %!s(int64=8) %!d(string=hai) anos
pai
achega
fa4f09194f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      volume/store/store.go

+ 3 - 0
volume/store/store.go

@@ -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"}
 	}