Skip to content

Commit

Permalink
Log stack trace if javasrc AstCreator crashes due to an UnsolvedSymbo…
Browse files Browse the repository at this point in the history
…lException (#4665)
  • Loading branch information
johannescoetzee committed Jun 14, 2024
1 parent 1972bd8 commit 4c1e044
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ class AstCreator(
scope.popNamespaceScope()
Ast(namespaceBlock).withChildren(typeDeclAsts).withChildren(importNodes)
} catch {
case t: UnsolvedSymbolException =>
logger.error(s"Unsolved symbol exception caught in $filename")
case exception: UnsolvedSymbolException =>
logger.warn(s"Unsolved symbol exception caught in $filename", exception)
Ast()
case t: Throwable =>
logger.error(s"Parsing file $filename failed", t)
logger.warn(s"Parsing file $filename failed", t)
Ast()
}
}
Expand Down

0 comments on commit 4c1e044

Please sign in to comment.