Skip to content

Commit

Permalink
fix - partial ast gen result in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
khemrajrathore committed Nov 7, 2024
1 parent 8bbbbd7 commit adea50c
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 adea50c

Please sign in to comment.