Merge pull request #1578 from majewsky/do-not-swallow-error

don't swallow errors in Swift driver's GetContent()
This commit is contained in:
Richard Scothern 2016-03-30 17:46:27 -07:00
commit 2a3d48fb82

View file

@ -280,7 +280,7 @@ func (d *driver) GetContent(ctx context.Context, path string) ([]byte, error) {
if err == swift.ObjectNotFound { if err == swift.ObjectNotFound {
return nil, storagedriver.PathNotFoundError{Path: path} return nil, storagedriver.PathNotFoundError{Path: path}
} }
return content, nil return content, err
} }
// PutContent stores the []byte content at a location designated by "path". // PutContent stores the []byte content at a location designated by "path".