Browse Source

Confusing error message if fragment does not exist (Fix #241)

dcg-latest
nicolas.dorier 5 years ago
parent
commit
2002d6eaa0
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 3
      docker-compose-generator/src/DockerComposeDefinition.cs

3
docker-compose-generator/src/DockerComposeDefinition.cs

@ -61,12 +61,13 @@ namespace DockerGenerator
unprocessedFragments.Add(fragment);
}
reprocessFragments:
foreach (var fragment in unprocessedFragments)
foreach (var fragment in unprocessedFragments.ToList())
{
var fragmentPath = GetFragmentLocation(fragment);
if (!File.Exists(fragmentPath))
{
fragmentsNotFound.Add(fragment);
unprocessedFragments.Remove(fragment);
}
}
foreach (var o in unprocessedFragments.Select(f => (f, ParseDocument(f))).ToList())

Loading…
Cancel
Save