Better exception handling.
[TD_SR.git] / TD1 / exo3 / Producteur.java
index 47a402180d5f8c9a6fa4854bc4b3b03f76c97858..f3cc123ac18ba582eba727a017023a0e29b176ee 100644 (file)
@@ -28,7 +28,9 @@ public class Producteur implements Runnable {
                        try {
                                Thread.sleep(ThreadLocalRandom.current().nextInt(101));
                        }
-                       catch (InterruptedException e) {}
+                       catch (InterruptedException e) {
+                               System.out.println("InterruptedException: " + e);
+                       }
                }
        }