From 52eeda9aa7e68e5047962ba56743fd525cf44381 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 1 Mar 2022 09:30:56 +0100 Subject: [PATCH] report external volume name not found Signed-off-by: Nicolas De Loof --- pkg/compose/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 960572422..14fd57e57 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -1098,7 +1098,7 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo return err } if volume.External.External { - return fmt.Errorf("external volume %q not found", volume.External.Name) + return fmt.Errorf("external volume %q not found", volume.Name) } err := s.createVolume(ctx, volume) return err