From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Thu, 14 Nov 2013 20:06:27 +0000 (+0000)
Subject: Augment an exception message. This doesn't solve the problem, but it
X-Git-Tag: v8.1.0~294
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c56dcb8a76459e74026bb756d16ebe4714f77b8;p=dealii.git

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
---

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<dim,spacedim>::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
+			   + ")."));
 }