From: Kyle Fuller Date: Fri, 13 Jan 2017 03:02:28 +0000 (+0000) Subject: test: show raw exception X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7ba071459ac45e0d2fbb1541493be2c3affbcac8;p=znc-palaver.git test: show raw exception --- diff --git a/test-regex.cpp b/test-regex.cpp index f3c77c6..54332b7 100644 --- a/test-regex.cpp +++ b/test-regex.cpp @@ -7,13 +7,8 @@ int main(int argc, const char *argv[]) { std::string message = "Hello nickname."; std::string matcher = "\\bnickname\\b"; - try { - std::regex expression = std::regex(matcher, std::regex_constants::ECMAScript | std::regex_constants::icase); - std::regex_search(message, match, expression); - } catch (std::regex_error& error) { - std::cout << "Your C++ compiler doesn't properly support regex. Please upgrade to GCC 4.9, Clang or newer.\n"; - return 1; - } + std::regex expression = std::regex(matcher, std::regex_constants::ECMAScript | std::regex_constants::icase); + std::regex_search(message, match, expression); if (match.empty()) { return 1;