Skip to content

Commit abba4fa

Browse files
committed
Include exception's message in message printed by AP
Fixes gh-17974
1 parent edcaee3 commit abba4fa

File tree

1 file changed

+2
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ private void process(TypeDescriptor descriptor, TypeMirror type) {
194194
}
195195
}
196196
catch (Exception ex) {
197-
this.env.getMessager().printMessage(Kind.WARNING, "Failed to generated type descriptor for " + type,
197+
this.env.getMessager().printMessage(Kind.WARNING,
198+
"Failed to generated type descriptor for " + type + ": " + ex.getMessage(),
198199
this.types.asElement(type));
199200
}
200201
}

0 commit comments

Comments
 (0)