summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2016-09-11 11:00:02 +0100
committerChris Wilson <chris+github@qwirx.com>2016-09-11 11:00:02 +0100
commitcada24ae028dba3699112186d4fe09275ef80d86 (patch)
treed2090a25d6b127eea6586a4a7afffe5271510133 /lib
parent8ba63a8c197b48504f544bba0a4f8f78be2df577 (diff)
Throw exception with message, instead of logging then throwing.
Diffstat (limited to 'lib')
-rw-r--r--lib/common/ExcludeList.cpp4
1 files changed, 1 insertions, 3 deletions
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