From 86ad2b4becd11e13cc6e34eb81f0d3d36784bb05 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 28 Sep 2012 15:33:06 +0000 Subject: [PATCH] Say which section can't be entered in an assertion. git-svn-id: https://svn.dealii.org/trunk@26846 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/timer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { -- 2.39.5