From 9def8c5e80677a75f1e0168efd0f501a30667c7e Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 16 Dec 2024 20:18:03 +0100 Subject: [PATCH] feat: log asset path on error (#14) (cherry picked from commit 618aac463869c2be3e519d784dbb2fc77bb33a3d) --- src/main/java/glowredman/txloader/RemoteHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/glowredman/txloader/RemoteHandler.java b/src/main/java/glowredman/txloader/RemoteHandler.java index cd97ddb..09e3797 100644 --- a/src/main/java/glowredman/txloader/RemoteHandler.java +++ b/src/main/java/glowredman/txloader/RemoteHandler.java @@ -85,7 +85,7 @@ static void getAssets() { try { jAsset.download(file); } catch (Exception e) { - TXLoaderCore.LOGGER.error("Failed to get asset!", e); + TXLoaderCore.LOGGER.error("Failed to get asset! Path: " + asset.resourceLocation, e); failed++; } continue; @@ -121,7 +121,7 @@ static void getAssets() { InputStream is = jarFile.getInputStream(jarFile.getJarEntry("assets/" + asset.resourceLocation)); FileUtils.copyInputStreamToFile(is, file); } catch (Exception e) { - TXLoaderCore.LOGGER.error("Failed to extract asset from jar!", e); + TXLoaderCore.LOGGER.error("Failed to extract asset from jar! Path: " + asset.resourceLocation, e); failed++; continue; }