Skip to content

Commit 60e61d3

Browse files
committed
print the correct stacktrace in filefixer
1 parent cf255cc commit 60e61d3

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- a/net/minecraft/util/filefix/FileFixerUpper.java
2+
+++ b/net/minecraft/util/filefix/FileFixerUpper.java
3+
@@ -314,7 +_,7 @@
4+
try {
5+
Files.deleteIfExists(movesFile);
6+
} catch (IOException var15) {
7+
- LOGGER.warn("Failed to delete {}", movesFile, var23);
8+
+ LOGGER.warn("Failed to delete {}", movesFile, var15);
9+
}
10+
}
11+
12+
@@ -353,8 +_,8 @@
13+
try {
14+
deleteDirectory(worldFolder);
15+
} catch (Exception var9x) {
16+
- LOGGER.warn("Failed to delete outdated world folder: ", (Throwable)var10x);
17+
- throw new FailedCleanupFileFixException(var10x, tempWorldTopLevel.getFileName().toString(), fileSystemCapabilities);
18+
+ LOGGER.warn("Failed to delete outdated world folder: ", (Throwable)var9x);
19+
+ throw new FailedCleanupFileFixException(var9x, tempWorldTopLevel.getFileName().toString(), fileSystemCapabilities);
20+
}
21+
}
22+

0 commit comments

Comments
 (0)