aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/Main.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-16 01:08:49 +0900
committersyeyoung <cyong06@naver.com>2021-05-16 01:08:49 +0900
commit0c8b4bc4ae367615ef009a98297045c0f999696d (patch)
tree5db03dbc4a7b0bb40bc084d57828f5cc61d68668 /src/main/java/kr/syeyoung/dungeonsguide/Main.java
parent30d9eb5e1a258b0f6440e310a910ba5a815823b1 (diff)
downloadSkyblock-Dungeons-Guide-0c8b4bc4ae367615ef009a98297045c0f999696d.tar.gz
Skyblock-Dungeons-Guide-0c8b4bc4ae367615ef009a98297045c0f999696d.tar.bz2
Skyblock-Dungeons-Guide-0c8b4bc4ae367615ef009a98297045c0f999696d.zip
Websocket is now optional
Main now logs exceptions Main now checks for error in "init" phase
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/Main.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/Main.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/Main.java b/src/main/java/kr/syeyoung/dungeonsguide/Main.java
index 873cb6e0..6e2e887e 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/Main.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/Main.java
@@ -68,7 +68,17 @@ public class Main
MinecraftForge.EVENT_BUS.register(this);
if (dgInterface != null) {
main = this;
- dgInterface.init(initializationEvent);
+ try {
+ dgInterface.init(initializationEvent);
+ } catch (Exception e) {
+ cause = e;
+ ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
+ PrintStream printStream = new PrintStream(byteArrayOutputStream);
+ e.printStackTrace(printStream);
+ stacktrace = new String(byteArrayOutputStream.toByteArray());
+
+ e.printStackTrace();
+ }
}
}
@@ -111,6 +121,8 @@ public class Main
while (progressBar.getStep() < progressBar.getSteps())
progressBar.step("random-"+progressBar.getStep());
ProgressManager.pop(progressBar);
+
+ e.printStackTrace();
}
}
} catch (IOException | AuthenticationException | NoSuchAlgorithmException | CertificateException | KeyStoreException | KeyManagementException | InvalidKeySpecException | SignatureException e) {
@@ -123,6 +135,8 @@ public class Main
while (progressBar.getStep() < progressBar.getSteps())
progressBar.step("random-"+progressBar.getStep());
ProgressManager.pop(progressBar);
+
+ e.printStackTrace();
}
}