Skip to content

Commit

Permalink
fix: error with missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnig committed Jun 2, 2023
1 parent 93f2d91 commit 6ca95b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/schema/generateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export class GenerateGlobalSchema {

if (e.diagnostics) {
e.diagnostics.forEach(
(element: { messageText: string; file: { fileName: string } }) => {
(element: { messageText: string; file?: { fileName: string } }) => {
log({
component: 'cli',
warning: element.messageText,
details: element.file.fileName,
details: element?.file?.fileName,
});
},
);
Expand Down

0 comments on commit 6ca95b3

Please sign in to comment.