From: Jérôme Benoit Date: Thu, 29 Mar 2018 20:17:53 +0000 (+0200) Subject: Add some trace in error paths. X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=commitdiff_plain;h=b35728ff17726d147258d1413a6e3f4a22790377 Add some trace in error paths. Signed-off-by: Jérôme Benoit --- 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 {