diff --git a/src/main/java/com/erikmafo/btviewer/controllers/MainController.java b/src/main/java/com/erikmafo/btviewer/controllers/MainController.java index 681d06a..97e83ab 100644 --- a/src/main/java/com/erikmafo/btviewer/controllers/MainController.java +++ b/src/main/java/com/erikmafo/btviewer/controllers/MainController.java @@ -145,8 +145,8 @@ private void saveTableConfiguration(BigtableTable table, BigtableTableConfigurat } private void displayErrorInfo(String errorText, WorkerStateEvent event) { - event.getSource().getException().printStackTrace(); - var alert = new Alert(Alert.AlertType.ERROR, errorText, ButtonType.CLOSE); + var exception = event.getSource().getException(); + var alert = new Alert(Alert.AlertType.ERROR, errorText + " " + exception.getLocalizedMessage(), ButtonType.CLOSE); alert.showAndWait(); }