Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to please clang 5.0
[simgrid.git] / examples / java / process / kill / Killer.java
index 35c7990..e03b69c 100644 (file)
@@ -23,7 +23,9 @@ public class Killer extends Process {
       poorVictim = new Victim("Boivin","victim");
       poorVictim.start();
     } catch (MsgException e){
-      System.out.println("Cannot create the victim process!");
+      e.printStackTrace();
+      Msg.error("Cannot create the victim process!");
+      return;
     }
     sleep(10000);
     Msg.info("Resume Process");