Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / src / kernel / context / Context.hpp
index 20ee29e..a58cf34 100644 (file)
@@ -85,10 +85,11 @@ public:
      */
   public:
     StopRequest() = default;
-    explicit StopRequest(std::string msg) : msg_(msg) {}
+    explicit StopRequest(std::string msg) : msg_(std::string("Actor killed (") + msg + std::string(").")) {}
+    virtual const char* what() const noexcept { return msg_.c_str(); }
 
   private:
-    std::string msg_;
+    std::string msg_ = std::string("Actor killed.");
   };
 };