diff --git a/joern-cli/frontends/jssrc2cpg/src/main/scala/io/joern/jssrc2cpg/utils/AstGenRunner.scala b/joern-cli/frontends/jssrc2cpg/src/main/scala/io/joern/jssrc2cpg/utils/AstGenRunner.scala index b68ba34431a7..a731f0a5cb6b 100644 --- a/joern-cli/frontends/jssrc2cpg/src/main/scala/io/joern/jssrc2cpg/utils/AstGenRunner.scala +++ b/joern-cli/frontends/jssrc2cpg/src/main/scala/io/joern/jssrc2cpg/utils/AstGenRunner.scala @@ -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(), _))) } }