Use stderr where appropriate.
[TD_SR.git] / TD1 / exo3 / Consommateur.java
index 480134976bcecd810a20ae7db3fdfbdfc4fb0eb4..06dd95db9dc89f2f1f46911bca0503b515c7d6ab 100644 (file)
@@ -26,7 +26,9 @@ public class Consommateur implements Runnable {
                        try {
                                Thread.sleep(ThreadLocalRandom.current().nextInt(1001));
                        }
-                       catch (InterruptedException e) {}
+                       catch (InterruptedException e) {
+                               System.err.println("InterruptedException: " + e);
+                       }
                }
        }