Skip to content

Commit

Permalink
[MSHARED-1248] should log instead of failing when analyzing a corrupted
Browse files Browse the repository at this point in the history
jar file
  • Loading branch information
garydgregory committed Jun 19, 2023
1 parent dd65dc0 commit fb5f5a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public void visitClass(String className, InputStream in) {
} catch (IndexOutOfBoundsException e) {
// some bug inside ASM causes an IOB exception. Log it and move on?
// this happens when the class isn't valid.
logger.warn("Unable to process: " + className);
logger.warn("Unable to process: " + className, e);
} catch (IllegalArgumentException e) {
// [MSHARED-1248] should log instead of failing when analyzing a corrupted jar file
logger.warn("Unable to process: " + className, e);
logger.warn("Byte code of '" + className + "' is corrupt" , e);
}
}

Expand Down

0 comments on commit fb5f5a1

Please sign in to comment.