From 3d05a1becfb936452ea63736cac27890537a5ea5 Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Thu, 25 May 2023 16:17:03 -0700 Subject: [PATCH] Fix typo in warning about existing volume Previously, this was telling us "but was not created for project [project-it-was-created-for]", which is wrong. I opted to make the message super explicit and print both the actual project and the expected project. Signed-off-by: Jeremy Fleischman --- 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 bdaff261..e613cfa7 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -1194,7 +1194,7 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo logrus.Warnf("volume %q already exists but was not created by Docker Compose. Use `external: true` to use an existing volume", volume.Name) } if ok && p != project { - logrus.Warnf("volume %q already exists but was not created for project %q. Use `external: true` to use an existing volume", volume.Name, p) + logrus.Warnf("volume %q already exists but was created for project %q (expected %q). Use `external: true` to use an existing volume", volume.Name, p, project) } return nil }