mirror of https://github.com/docker/compose.git
don't ignore error
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
625a48dcf7
commit
672e2367fb
|
@ -238,7 +238,10 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer
|
||||||
|
|
||||||
func (s *composeService) getProjectWithResources(ctx context.Context, containers Containers, projectName string) (*types.Project, error) {
|
func (s *composeService) getProjectWithResources(ctx context.Context, containers Containers, projectName string) (*types.Project, error) {
|
||||||
containers = containers.filter(isNotOneOff)
|
containers = containers.filter(isNotOneOff)
|
||||||
project, _ := s.projectFromName(containers, projectName)
|
project, err := s.projectFromName(containers, projectName)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
volumes, err := s.actualVolumes(ctx, projectName)
|
volumes, err := s.actualVolumes(ctx, projectName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue