From 5a598c2749e488ca8cbb316241c644fd0671f9eb Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 31 Jul 2018 02:35:47 +0200 Subject: [PATCH] cosmetics in error message --- src/s4u/s4u_Engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s4u/s4u_Engine.cpp b/src/s4u/s4u_Engine.cpp index 4c7026b535..6f5e4d65c8 100644 --- a/src/s4u/s4u_Engine.cpp +++ b/src/s4u/s4u_Engine.cpp @@ -139,7 +139,7 @@ void Engine::host_unregister(std::string name) simgrid::s4u::Host* Engine::host_by_name(std::string name) { if (pimpl->hosts_.find(name) == pimpl->hosts_.end()) - throw std::invalid_argument(std::string("Host not found: ") + name); + throw std::invalid_argument(std::string("Host not found: '") + name + std::string("'")); return pimpl->hosts_.at(name); } -- 2.20.1