From: Wolfgang Bangerth Date: Fri, 10 Mar 2023 21:24:08 +0000 (-0700) Subject: Minor improvement to an error message. X-Git-Tag: v9.5.0-rc1~497^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14876%2Fhead;p=dealii.git Minor improvement to an error message. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index ba4ae6b402..f8e184a158 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -926,7 +926,8 @@ namespace StandardExceptions DeclException2(ExcDimensionMismatch, std::size_t, std::size_t, - << "Dimension " << arg1 << " not equal to " << arg2 << '.'); + << "Two sizes or dimensions were supposed to be equal, " + << "but aren't. They are " << arg1 << " and " << arg2 << '.'); /** * The first dimension should be either equal to the second or the third, @@ -936,8 +937,10 @@ namespace StandardExceptions std::size_t, std::size_t, std::size_t, - << "Dimension " << arg1 << " neither equal to " << arg2 - << " nor to " << arg3 << '.'); + << "The size or dimension of one object, " << arg1 + << " was supposed to be " + << "equal to one of two values, but isn't. The two possible " + << "values are " << arg2 << " and " << arg3 << '.'); /** * This exception indicates that an index is not within the expected range.