elharo commented on code in PR #66:
URL: 
https://github.com/apache/maven-artifact-plugin/pull/66#discussion_r2390949336


##########
src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java:
##########
@@ -213,8 +214,10 @@ private ReproducibleEnv extractEnv(File file, Artifact 
artifact) {
             } else {
                 log.warn("no MANIFEST.MF found in jar " + file);
             }
+        } catch (ZipException e) {
+            log.warn("Corrupt jar file " + file + "\n" + e.getMessage());
         } catch (IOException e) {
-            log.warn("unable to open jar file " + file, e);
+            log.warn("unable to read jar file " + file + "\n" + 
e.getMessage());

Review Comment:
   added exception class name



-- 
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