From 85e94b565b054b331252f5f0b28efe4987ced553 Mon Sep 17 00:00:00 2001 From: erikmafo Date: Sun, 28 Jun 2020 13:58:48 +0200 Subject: [PATCH] Improve error description --- .../com/erikmafo/btviewer/controllers/MainController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }