From: Daniel Arndt Date: Tue, 16 May 2023 22:11:00 +0000 (-0400) Subject: Use AssertThrow X-Git-Tag: v9.5.0-rc1~221^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e35589d9ffeaed68f27fb9d983ff781046d03ef2;p=dealii.git Use AssertThrow --- diff --git a/source/base/patterns.cc b/source/base/patterns.cc index 83a0486134..5996474eb9 100644 --- a/source/base/patterns.cc +++ b/source/base/patterns.cc @@ -791,8 +791,9 @@ namespace Patterns tmp_it = std::find_if(tmp_it + 1, description.end(), [](char c) { return (c == '>' || c == '<'); }); - Assert(tmp_it != description.end(), - ExcMessage("Couldn't find a closing '>' in description!")); + AssertThrow(tmp_it != description.end(), + ExcMessage( + "Couldn't find a closing '>' in description!")); if (*tmp_it == '<') ++n_open_angular; else