Add some trace in error paths.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 29 Mar 2018 20:17:53 +0000 (22:17 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 29 Mar 2018 20:17:53 +0000 (22:17 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TD2/client/Main.java

index bd02ad4562eaf4a51a4ec7d86881b20464612969..82fbfc975b563213df2c108f1bc0b23a43711fed 100644 (file)
@@ -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 {