Skip to content

Commit

Permalink
Merge pull request #143 from codebots-platform/import-failure-reason
Browse files Browse the repository at this point in the history
[EOL] Fix incorrect import failure reason
  • Loading branch information
agarciadom authored Dec 18, 2024
2 parents f1c16e3 + 0605c2d commit 3092361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ protected Collection<Import> getImportsByExtension(AST cst, String extension, Cl
ParseProblem problem = new ParseProblem();
problem.setLine(import_.getRegion().getStart().getLine());

String reason = import_.isFound()
String reason = !import_.isFound()
? String.format("File %s not found", import_.getPath())
: String.format("File %s contains errors: %s", import_.getPath(),
import_.getModule().getParseProblems());
Expand Down

0 comments on commit 3092361

Please sign in to comment.