Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix XBT_ERROR message
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 May 2015 11:03:58 +0000 (13:03 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 May 2015 11:03:58 +0000 (13:03 +0200)
src/mc/simgrid_mc.cpp

index f06240e..2b1f204 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015. The SimGrid Team.
+  /* Copyright (c) 2015. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -93,7 +93,7 @@ static int do_parent(int socket, pid_t child)
     mc_server->exit();
   }
   catch(std::exception& e) {
     mc_server->exit();
   }
   catch(std::exception& e) {
-    XBT_ERROR(e.what());
+    XBT_ERROR("Exception: %s", e.what());
   }
   exit(MC_SERVER_ERROR);
 }
   }
   exit(MC_SERVER_ERROR);
 }