Browse Source

report external volume name not found

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 3 năm trước cách đây
mục cha
commit
52eeda9aa7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pkg/compose/create.go

+ 1 - 1
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