no need to throw std::runtime_error as ellipsis catch (...) {} catches them all.

(TODO: consider having finer grained catches e.g expectation_failure)
This commit is contained in:
Artem Pavlenko 2020-01-14 14:34:39 +00:00
parent 0bddff6977
commit c5f3e6c654

View file

@ -54,7 +54,7 @@ bool parse_path(const char* wkt, PathType& p)
if (!x3::phrase_parse(first, last, grammar, space_type()) if (!x3::phrase_parse(first, last, grammar, space_type())
|| first != last) || first != last)
{ {
throw std::runtime_error("Failed to parse svg-path"); throw;
} }
} }
catch (...) catch (...)