desruisseaux commented on code in PR #1160:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/1160#discussion_r4212051841


##########
src/main/java/org/apache/maven/plugin/compiler/DiagnosticLogger.java:
##########
@@ -114,7 +114,19 @@ private String relativize(String file) {
      */
     @Override
     public void report(Diagnostic<? extends JavaFileObject> diagnostic) {
-        String message = diagnostic.getMessage(locale);
+        String message;
+        try {
+            message = diagnostic.getMessage(locale);
+        } catch (Throwable e) {

Review Comment:
   `Throwable` if probably too wide as an exception type.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to