X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/872ab6b1e74ea5656ea8bd8dff7235e4c468b36f..96cedde3cdbc0b8ffc3f096a1b65d021b0226f99:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 20ee29e65b..a58cf342ec 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -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."); }; };