* fixing security issues

Signed-off-by: CubeBit <denis-seredenko@ukr.net>
This commit is contained in:
2023-08-03 19:36:03 +02:00
parent 590b989b1b
commit 10b17d9565
2 changed files with 6 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ public class ClientThread implements Runnable {
} catch (NoSuchPaddingException | IllegalBlockSizeException | IOException | NoSuchAlgorithmException |
InvalidKeySpecException | BadPaddingException |InvalidKeyException | InvalidAlgorithmParameterException e) {
Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.ERROR, "Disconnected from server!");
Alert alert = new Alert(Alert.AlertType.ERROR, e.getMessage());
alert.show();
});
@@ -106,7 +106,10 @@ public class ClientThread implements Runnable {
out.close();
} catch (IOException e) {
e.printStackTrace();
Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.ERROR, e.getMessage());
alert.show();
});
}
}
}