Skip to content

Commit

Permalink
improve the error message in Node.getSymbolResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Oct 7, 2017
1 parent 68e7442 commit 6a0dd26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ protected SymbolResolver getSymbolResolver() {
return findCompilationUnit().map(cu -> {
SymbolResolver symbolResolver = cu.getData(SYMBOL_RESOLVER_KEY);
if (symbolResolver == null) {
throw new IllegalStateException("Symbol resolution not configured");
throw new IllegalStateException("Symbol resolution not configured: to configure consider setting a SymbolResolver in the ParserConfiguration");
}
return symbolResolver;
}).orElseThrow(() -> new IllegalStateException("The node is not inserted in a CompilationUnit"));
Expand Down

0 comments on commit 6a0dd26

Please sign in to comment.