Skip to content

Commit

Permalink
Improve error description
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmafo committed Jun 28, 2020
1 parent 7cc2c32 commit 85e94b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 85e94b5

Please sign in to comment.