From e35589d9ffeaed68f27fb9d983ff781046d03ef2 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 16 May 2023 18:11:00 -0400 Subject: [PATCH] Use AssertThrow --- source/base/patterns.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5