Skip to content

Commit

Permalink
Merge pull request #137 from Privado-Inc/returnPartialASTGenResult
Browse files Browse the repository at this point in the history
fix - partial ast gen result in case of failure
  • Loading branch information
PallaviShreshtha authored Nov 7, 2024
2 parents 8bbbbd7 + adea50c commit 80268e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ class AstGenRunner(config: Config) {
AstGenRunnerResult(parsed.map((in.toString(), _)), skipped.map((in.toString(), _)))
case Failure(f) =>
logger.error("\t- running astgen failed!", f)
AstGenRunnerResult()
val parsed = checkParsedFiles(filterFiles(SourceFiles.determine(out.toString(), Set(".json")), out), in)
val skipped = List.empty
AstGenRunnerResult(parsed.map((in.toString(), _)), skipped.map((in.toString(), _)))
}
}

Expand Down

0 comments on commit 80268e0

Please sign in to comment.