Skip to content

Commit

Permalink
Include class name in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
elandau committed Jul 6, 2017
1 parent 30905a0 commit 3e3f43b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
annotatedFields.add(selfClass().getDeclaredField(name));
break;
} catch (NoSuchFieldException e) {
throw new IllegalStateException("Error visiting field " + name, e);
throw new IllegalStateException("Error visiting field " + name + " of class " + selfClass().getName(), e);
} catch (NoClassDefFoundError e) {
log.info("Unable to scan field '{}' of class '{}'", name, selfClass().getName(), e.getMessage());
}
Expand Down

0 comments on commit 3e3f43b

Please sign in to comment.