Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: log class causing failure in frontend dependency scan #19721

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,17 @@ class FullDependenciesScanner extends AbstractDependenciesScanner {
super(finder, featureFlags);

long start = System.currentTimeMillis();
this.annotationFinder = annotationFinder;
// Wraps the finder function to provide debugging information in case of
// failures
this.annotationFinder = (clazz, loadedAnnotation) -> {
try {
return annotationFinder.apply(clazz, loadedAnnotation);
} catch (RuntimeException exception) {
getLogger().error("Could not read {} annotation from class {}.",
loadedAnnotation.getName(), clazz.getName(), exception);
throw exception;
}
};

try {
abstractTheme = finder.loadClass(AbstractTheme.class.getName());
Expand Down
Loading