浏览代码

Merge pull request #10623 from jfly/jfly/tweak-warning-message

Fix typo in warning about existing volume
Guillaume Lours 2 年之前
父节点
当前提交
6530880361
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/compose/create.go

+ 1 - 1
pkg/compose/create.go

@@ -1197,7 +1197,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)
 		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 {
 	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
 	return nil
 }
 }