From c5f3e6c654e4b704af961a76caa633878a71d75d Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 14 Jan 2020 14:34:39 +0000 Subject: [PATCH] no need to throw std::runtime_error as ellipsis `catch (...) {}` catches them all. (TODO: consider having finer grained catches e.g expectation_failure) --- src/svg/svg_path_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/svg_path_parser.cpp b/src/svg/svg_path_parser.cpp index a99847996..7b0d11902 100644 --- a/src/svg/svg_path_parser.cpp +++ b/src/svg/svg_path_parser.cpp @@ -54,7 +54,7 @@ bool parse_path(const char* wkt, PathType& p) if (!x3::phrase_parse(first, last, grammar, space_type()) || first != last) { - throw std::runtime_error("Failed to parse svg-path"); + throw; } } catch (...)