Enhanced exception output for number parsing.

This commit is contained in:
Patrick Lühne 2016-05-20 16:26:24 +02:00
parent 6d7954e661
commit 59661621cd

View File

@ -189,7 +189,7 @@ size_t Description::parseNumber(std::istream &istream) const
} }
catch (const std::exception &e) catch (const std::exception &e)
{ {
throw ParserException("Could not parse number"); throw ParserException(std::string("Could not parse number (") + e.what() + ")");
} }
if (number == std::numeric_limits<size_t>::max()) if (number == std::numeric_limits<size_t>::max())