Skip to content

Commit 1aa2bc1

Browse files
committed
Comment
1 parent 8029bd0 commit 1aa2bc1

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/link/infra/packwiz/installer/bootstrap

1 file changed

+2
-0
lines changed

src/main/java/link/infra/packwiz/installer/bootstrap/Main.java

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ private void doUpdate() throws IOException, GithubException {
140140
private void showError(Exception e, String message) {
141141
if (useGUI) {
142142
e.printStackTrace();
143+
// NOTE: Due to Swing being unmultithreaded, this will break when the installer UI actually starts!
144+
// I added a big catchall exception handler into the installer to mitigate this, but it's not ideal.
143145
JOptionPane.showMessageDialog(null,
144146
message + "\n" + e.getClass().getCanonicalName() + ": " + e.getMessage(),
145147
"packwiz-installer-bootstrap", JOptionPane.ERROR_MESSAGE);

0 commit comments

Comments
 (0)