Skip to content

Commit

Permalink
revert line but print stacktrace & Mojang#16
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan-G committed Dec 15, 2017
1 parent 03f708f commit b874b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public Class<?> findClass(final String name) throws ClassNotFoundException {
invalidClasses.add(name);
if (DEBUG) {
LogWrapper.log(Level.TRACE, e, "Exception encountered attempting classloading of %s", name);
LogManager.getLogger("LaunchWrapper").log(Level.ERROR, "Exception encountered attempting classloading of %s", e);
LogManager.getLogger("LaunchWrapper").log(Level.ERROR, String.format("Exception encountered attempting classloading of %s", name), e);
}
throw new ClassNotFoundException(name, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static void loadIconsOnFrames() {
});
Frame[] frames = Frame.getFrames();

//if (frames != null) {
if (frames != null) {
final List<Image> icons = Arrays.<Image>asList(ImageIO.read(smallIcon), ImageIO.read(bigIcon));

for (Frame frame : frames) {
Expand All @@ -109,7 +109,7 @@ public static void loadIconsOnFrames() {
throwable.printStackTrace();
}
}
//}
} else {new NullPointerException().printStackTrace();}
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit b874b5a

Please sign in to comment.