Skip to content

Commit

Permalink
Fail with invalid projects
Browse files Browse the repository at this point in the history
  • Loading branch information
guw committed Jul 18, 2023
1 parent 09f755a commit e5f82a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.salesforce.bazel.eclipse.core.classpath;

import static com.salesforce.bazel.eclipse.core.BazelCoreSharedContstants.BAZEL_NATURE_ID;
import static java.lang.String.format;
import static java.util.stream.Collectors.groupingBy;

import java.util.List;
Expand Down Expand Up @@ -97,8 +98,7 @@ public InitializeOrRefreshClasspathJob(Stream<BazelProject> projects, BazelClass
try {
return p.getBazelWorkspace();
} catch (CoreException e) {
// invalid
return null;
throw new IllegalStateException(format("Invalid project '%s': %s", p, e.getMessage()), e);
}
}));
setPriority(Job.BUILD); // process after others
Expand Down

0 comments on commit e5f82a0

Please sign in to comment.