Skip to content

Commit

Permalink
Merge pull request moby#28690 from zteBill/volume-errorinfo-inexact
Browse files Browse the repository at this point in the history
repeated volume create information
  • Loading branch information
vdemeester authored Jan 15, 2017
2 parents 96f7cf2 + 47b110a commit fa4f091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions volume/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}

Expand Down

0 comments on commit fa4f091

Please sign in to comment.