Skip to content

Commit b018fb1

Browse files
committed
meta: add repo commit to kaboom crashlog
1 parent 0992f11 commit b018fb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrashRecoveryPage.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package io.github.moulberry.notenoughupdates.profileviewer;
2121

2222
import io.github.moulberry.moulconfig.internal.ClipboardUtils;
23+
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
2324
import io.github.moulberry.notenoughupdates.core.util.render.RenderUtils;
2425
import io.github.moulberry.notenoughupdates.util.Rectangle;
2526
import io.github.moulberry.notenoughupdates.util.Utils;
@@ -62,6 +63,11 @@ public CrashRecoveryPage(
6263
parameters.addCrashSection("Viewed Profile", GuiProfileViewer.getProfileName());
6364
parameters.addCrashSection("Timestamp", timestamp);
6465
parameters.addCrashSection("Last Viewed Page", lastViewedPage);
66+
if (NotEnoughUpdates.INSTANCE.manager.onBackupRepo) {
67+
parameters.addCrashSection("Repo Commit", "Using Backup");
68+
} else {
69+
parameters.addCrashSection("Repo Commit", NotEnoughUpdates.INSTANCE.manager.latestRepoCommit);
70+
}
6571
Bootstrap.printToSYSOUT(crashReport.getCompleteReport());
6672
}
6773

0 commit comments

Comments
 (0)