From 4ddddbc145f5588b5ca137a52ff11ac305cc7ed2 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 14 Nov 2013 20:06:27 +0000 Subject: [PATCH] Augment an exception message. This doesn't solve the problem, but it gets us closer to it... git-svn-id: https://svn.dealii.org/trunk@31658 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/dofs/dof_handler.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/dofs/dof_handler.h b/deal.II/include/deal.II/dofs/dof_handler.h index 93d765a670..a740d4488e 100644 --- a/deal.II/include/deal.II/dofs/dof_handler.h +++ b/deal.II/include/deal.II/dofs/dof_handler.h @@ -1306,8 +1306,12 @@ void DoFHandler::load (Archive &ar, ExcMessage ("The finite element associated with this DoFHandler does not match " "the one that was associated with the DoFHandler previously stored.")); AssertThrow (policy_name == typeid(*policy).name(), - ExcMessage ("The policy associated with this DoFHandler does not match " - "the one that was associated with the DoFHandler previously stored.")); + ExcMessage (std::string ("The policy currently associated with this DoFHandler (") + + typeid(*policy).name() + +std::string(") does not match the one that was associated with the " + "DoFHandler previously stored (") + + policy_name + + ").")); } -- 2.39.5