Browse Source
Confusing error message if fragment does not exist (Fix #241)
dcg-latest
nicolas.dorier
5 years ago
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
1 changed files with
2 additions and
1 deletions
-
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()) |
|
|
|