Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Jun 6, 2019
1 parent 8029bd0 commit 1aa2bc1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ private void doUpdate() throws IOException, GithubException {
private void showError(Exception e, String message) {
if (useGUI) {
e.printStackTrace();
// NOTE: Due to Swing being unmultithreaded, this will break when the installer UI actually starts!
// I added a big catchall exception handler into the installer to mitigate this, but it's not ideal.
JOptionPane.showMessageDialog(null,
message + "\n" + e.getClass().getCanonicalName() + ": " + e.getMessage(),
"packwiz-installer-bootstrap", JOptionPane.ERROR_MESSAGE);
Expand Down

0 comments on commit 1aa2bc1

Please sign in to comment.