]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use AssertThrow 15230/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 16 May 2023 22:11:00 +0000 (18:11 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 16 May 2023 22:11:00 +0000 (18:11 -0400)
source/base/patterns.cc

index 83a04861343eb04be3cc887d7e31bab9539fa892..5996474eb9b18988acfa5e3601a59a0ed87360e5 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.