Browse Source

log errors when showing main window

Sebastian Stenzel 3 năm trước cách đây
mục cha
commit
69f3a2bd5a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/main/java/org/cryptomator/ui/fxapp/FxApplication.java

+ 3 - 0
src/main/java/org/cryptomator/ui/fxapp/FxApplication.java

@@ -61,6 +61,9 @@ public class FxApplication {
 					stage.setIconified(true);
 				}
 			}
+		}).exceptionally(error -> {
+			LOG.error("Failed to show main window", error);
+			return null;
 		});
 
 		launchEventHandler.startHandlingLaunchEvents();