Skip to content

Commit

Permalink
Stack traces if loading settings fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajarmar committed Jan 2, 2020
1 parent 66db5cf commit 7f256f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/dabomstew/pkrandom/gui/RandomizerGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -2214,6 +2214,7 @@ private void presetLoader() {
this.restoreStateFromSettings(settings);
} catch (UnsupportedEncodingException e) {
// settings load failed
e.printStackTrace();
this.romHandler = null;
initialFormState();
}
Expand Down Expand Up @@ -2389,10 +2390,13 @@ private void loadQSButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN
JOptionPane.showMessageDialog(this,
String.format(bundle.getString("RandomizerGUI.settingsLoaded"), fh.getName()));
} catch (UnsupportedOperationException ex) {
ex.printStackTrace();
JOptionPane.showMessageDialog(this, bundle.getString("RandomizerGUI.settingsFileNewer"));
} catch (IllegalArgumentException ex) {
ex.printStackTrace();
JOptionPane.showMessageDialog(this, bundle.getString("RandomizerGUI.invalidSettingsFile"));
} catch (IOException ex) {
ex.printStackTrace();
JOptionPane.showMessageDialog(this, bundle.getString("RandomizerGUI.settingsLoadFailed"));
}
}
Expand Down

0 comments on commit 7f256f1

Please sign in to comment.