Skip to content

Commit

Permalink
DEVPROD-4117: Treat missing include files as FileNotFoundError (#7458)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjri authored Jan 29, 2024
1 parent f2509a7 commit 3fbf3dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/project_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@ func LoadProjectInto(ctx context.Context, data []byte, opts *GetProjectOpts, ide
catcher := grip.NewBasicCatcher()
for elem := range outputYAMLs {
catcher.Add(elem.err)
if thirdparty.IsFileNotFound(errors.Cause(elem.err)) {
return intermediateProject, errors.Wrap(elem.err, "getting includes")
}
if elem.yaml != nil {
yamlMap[elem.name] = elem.yaml
}
Expand Down

0 comments on commit 3fbf3dd

Please sign in to comment.