Skip to content

Commit

Permalink
feat: log asset path on error (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 authored Dec 16, 2024
1 parent b14e9ce commit 618aac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/glowredman/txloader/RemoteHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 618aac4

Please sign in to comment.