Skip to content

Commit

Permalink
Merge pull request #5881 from NickAragua/stability_improvements_reduc…
Browse files Browse the repository at this point in the history
…ed_enthusiasm

restore user alert
  • Loading branch information
rjhancock authored Aug 9, 2024
2 parents af9d24f + 1a219ef commit 9a7048b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions megamek/src/megamek/logging/MMLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ public void error(String message) {
*/
public void error(Throwable exception, String message, String title) {
error(exception, message);

try {
JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
}
catch (Exception ignored) {
// if the message dialog crashes, we don't really care
}
}

/**
Expand All @@ -166,6 +173,7 @@ public void error(Throwable exception, String message, String title) {
*/
public void error(String message, String title) {
error(message);

try {
JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
}
Expand Down

0 comments on commit 9a7048b

Please sign in to comment.