Skip to content

Commit

Permalink
Remove unneeded extra stack trace variable
Browse files Browse the repository at this point in the history
This was intended for a new option in the top-level Exception handler dialog, but extraneous here.
  • Loading branch information
Sleet01 authored Dec 21, 2023
1 parent a5423a6 commit db37de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions megamek/src/megamek/MegaMek.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public static void main(String... args) {
Thread.setDefaultUncaughtExceptionHandler((thread, t) -> {
LogManager.getLogger().error("Uncaught Exception Detected", t);
final String name = t.getClass().getName();
final StackTraceElement[] stack = t.getStackTrace();
JOptionPane.showMessageDialog(null,
String.format("Uncaught %s detected. Please open up an issue containing all logs, the game save file, and customs at https://github.com/MegaMek/megamek/issues", name),
"Uncaught " + name, JOptionPane.ERROR_MESSAGE);
Expand Down Expand Up @@ -357,4 +356,4 @@ public static void initializeSuiteGraphicalSetups(final String currentProject) {
// Setup Button Order Preferences
ButtonOrderPreferences.getInstance().setButtonPriorities();
}
}
}

0 comments on commit db37de5

Please sign in to comment.