From: Wolfgang Bangerth Date: Wed, 8 Nov 2023 17:35:40 +0000 (-0700) Subject: Make an assertion more informative. X-Git-Tag: relicensing~308^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e763af15d40e746d86220e5649d492f5d957ab;p=dealii.git Make an assertion more informative. The corresponding DoFAccessor already has that same text. --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index e3a5a0061d..cd8f4d0ac1 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -2899,7 +2899,10 @@ inline TriaAccessor<0, 1, spacedim>::TriaAccessor( // accessor (void)level; (void)index; - Assert((level == -2) && (index == -2), ExcInternalError()); + Assert((level == -2) && (index == -2), + ExcMessage( + "This constructor can not be called for face iterators in 1d, " + "except to default-construct iterator objects.")); }