X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/40d3634e5448cd560a6989d07d10ec30e85cf533..385be8f0b1e64c189591bb342a930824d8e9bb6a:/examples/java/process/suspend/Main.java diff --git a/examples/java/process/suspend/Main.java b/examples/java/process/suspend/Main.java index 04510e852d..3eb40645c7 100644 --- a/examples/java/process/suspend/Main.java +++ b/examples/java/process/suspend/Main.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2014, 2016. The SimGrid Team. +/* Copyright (c) 2006-2014, 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -25,9 +25,9 @@ public class Main { try { DreamMaster process1 = new DreamMaster("Jacquelin","DreamMaster"); process1.start(); - } catch (MsgException e){ - System.out.println("Create processes failed!"); - } + } catch (MsgException e){ + Msg.error("Create processes failed!"); + } /* execute the simulation. */ Msg.run();