From cada24ae028dba3699112186d4fe09275ef80d86 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 11 Sep 2016 11:00:02 +0100 Subject: Throw exception with message, instead of logging then throwing. --- lib/common/ExcludeList.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/common/ExcludeList.cpp b/lib/common/ExcludeList.cpp index 4d964021..3f9f69ee 100644 --- a/lib/common/ExcludeList.cpp +++ b/lib/common/ExcludeList.cpp @@ -199,11 +199,9 @@ void ExcludeList::AddRegexEntries(const std::string &rEntries) { char buf[1024]; regerror(errcode, pregex, buf, sizeof(buf)); - BOX_LOG_CATEGORY(Log::ERROR, - ConfigurationVerify::VERIFY_ERROR, + THROW_EXCEPTION_MESSAGE(CommonException, BadRegularExpression, "Invalid regular expression: " << entry << ": " << buf); - THROW_EXCEPTION(CommonException, BadRegularExpression) } // Store in list of regular expressions -- cgit v1.2.3