From 29ad84946dd296248632c3ea92dbda967d134e8c Mon Sep 17 00:00:00 2001 From: "malik.hadjri" Date: Fri, 26 Jan 2024 17:05:49 -0500 Subject: [PATCH] DEVPROD-4117: Treat missing include files as FileNotFoundError --- model/project_parser.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/project_parser.go b/model/project_parser.go index 99226ae4433..515bf315b11 100644 --- a/model/project_parser.go +++ b/model/project_parser.go @@ -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 }