From b35728ff17726d147258d1413a6e3f4a22790377 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 29 Mar 2018 22:17:53 +0200 Subject: [PATCH] Add some trace in error paths. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TD2/client/Main.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TD2/client/Main.java b/TD2/client/Main.java index bd02ad4..82fbfc9 100644 --- a/TD2/client/Main.java +++ b/TD2/client/Main.java @@ -25,6 +25,7 @@ public class Main { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } finally { client.closeRWIO(); @@ -34,6 +35,7 @@ public class Main { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } } @@ -58,6 +60,7 @@ public class Main { } catch (Exception e) { System.err.println("Exception: " + e); + e.printStackTrace(); } finally { try { @@ -88,6 +91,7 @@ public class Main { } catch (Exception e) { System.err.println("Exception: " + e); + e.printStackTrace(); } finally { try { -- 2.34.1