From fcb71d460071e1e998857308787618eb8831017f Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Sat, 29 Jun 2024 12:10:01 -0500 Subject: [PATCH] fault tolerance --- src/MissPiggy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MissPiggy.java b/src/MissPiggy.java index 0ab69a0..83fa25b 100644 --- a/src/MissPiggy.java +++ b/src/MissPiggy.java @@ -423,7 +423,8 @@ public class MissPiggy implements ActionListener { System.out.println("mod display " + modList.getModel().getSize()); System.out.println("selection index " + modList.getSelectedIndex()); - //System.exit(1); //user safety + int result = JOptionPane.showConfirmDialog(frame, "Firestar encountered an internal error.\n" + ex.getMessage(), "Fatal Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE); + if (result == JOptionPane.OK_OPTION) {System.exit(1);} //user safety } }