X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c9c7beb7e2a457c51a9c4252e8b31b1c9a4ca094..03ce6a2e7863fe994d12ca8ab9141b4f6fdb5f8e:/src/instr/instr_paje_containers.cpp diff --git a/src/instr/instr_paje_containers.cpp b/src/instr/instr_paje_containers.cpp index 52994b4a5b..e0c22b18d2 100644 --- a/src/instr/instr_paje_containers.cpp +++ b/src/instr/instr_paje_containers.cpp @@ -129,8 +129,7 @@ Container* Container::by_name_or_null(std::string name) Container* Container::by_name(std::string name) { Container* ret = Container::by_name_or_null(name); - if (ret == nullptr) - THROWF(tracing_error, 1, "container with name %s not found", name.c_str()); + xbt_assert(ret != nullptr, "container with name %s not found", name.c_str()); return ret; }