From: bangerth Date: Fri, 17 Jan 2014 20:56:08 +0000 (+0000) Subject: Improve error message. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc52ebe8e7dd2ba733ac564c9a5f31069e88337;p=dealii-svn.git Improve error message. git-svn-id: https://svn.dealii.org/trunk@32238 0785d39b-7218-0410-832d-ea1e28bc413d --- 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).")); }