Skip to content

Commit

Permalink
fix: Don't get compiler errors if they are ignored
Browse files Browse the repository at this point in the history
Closes #1032
  • Loading branch information
Gerrit0 committed Dec 26, 2019
1 parent 3b6d18c commit 78d8e2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/converter/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export class Converter extends ChildableComponent<Application, ConverterComponen
this.convertNode(context, sourceFile);
});

if (this.application.ignoreCompilerErrors) {
return [];
}

let diagnostics = program.getOptionsDiagnostics().filter(isRelevantError);
if (diagnostics.length) {
return diagnostics;
Expand Down

0 comments on commit 78d8e2f

Please sign in to comment.