Skip to content

Commit 17f55b0

Browse files
committed
feat: add warning logs for undefined manifest or nodes
1 parent 94440e1 commit 17f55b0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/manifest/parsers/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ export class ManifestParser {
2828
const nodes = parsedManifest?.nodeMetaMap.nodes();
2929

3030
if (!parsedManifest || !nodes) {
31+
const projectName = project.getProjectName();
32+
const projectRoot = project.projectRoot;
33+
34+
if (!parsedManifest) {
35+
this.terminal.warn(
36+
"ManifestParser",
37+
`Failed to parse manifest for project "${projectName}" at ${projectRoot}: parsedManifest is undefined`,
38+
);
39+
} else if (!nodes) {
40+
this.terminal.warn(
41+
"ManifestParser",
42+
`Failed to parse manifest for project "${projectName}" at ${projectRoot}: nodes collection is undefined`,
43+
);
44+
}
45+
3146
return;
3247
}
3348

0 commit comments

Comments
 (0)