From 2bc52ebe8e7dd2ba733ac564c9a5f31069e88337 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 17 Jan 2014 20:56:08 +0000 Subject: [PATCH] Improve error message. git-svn-id: https://svn.dealii.org/trunk@32238 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/dofs/dof_accessor.templates.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/dofs/dof_accessor.templates.h b/deal.II/include/deal.II/dofs/dof_accessor.templates.h index 327146e3f5..2c9af2dcc0 100644 --- a/deal.II/include/deal.II/dofs/dof_accessor.templates.h +++ b/deal.II/include/deal.II/dofs/dof_accessor.templates.h @@ -80,7 +80,12 @@ DoFAccessor::DoFAccessor (const DoFAccessor & : BaseClass(other), dof_handler(0) { - Assert (false, ExcInvalidObject()); + Assert (false, ExcMessage("You are trying to assign iterators that are incompatible. " + "Reasons for incompatibility are that they point to different " + "types of DoFHandlers (e.g., dealii::DoFHandler and " + "dealii::hp::DoFHandler) or that the refer to objects of " + "different dimensionality (e.g., assigning a line iterator " + "to a quad iterator).")); } -- 2.39.5