From: bangerth Date: Fri, 28 Sep 2012 15:33:06 +0000 (+0000) Subject: Say which section can't be entered in an assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d5f357ef2b34c166e5c8f2d3f47b31f954ee8b;p=dealii-svn.git Say which section can't be entered in an assertion. git-svn-id: https://svn.dealii.org/trunk@26846 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/timer.cc b/deal.II/source/base/timer.cc index f6a13b2f57..04a4211eaa 100644 --- a/deal.II/source/base/timer.cc +++ b/deal.II/source/base/timer.cc @@ -342,7 +342,8 @@ TimerOutput::enter_subsection (const std::string §ion_name) Assert (std::find (active_sections.begin(), active_sections.end(), section_name) == active_sections.end(), - ExcMessage ("Cannot enter the already active section.")); + ExcMessage (std::string("Cannot enter the already active section <") + + section_name + ">.")); if (sections.find (section_name) == sections.end()) {