From 59661621cd998ece9e6b5d7f36130698f5dcf2fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 20 May 2016 16:26:24 +0200 Subject: [PATCH] Enhanced exception output for number parsing. --- src/plasp/sas/Description.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasp/sas/Description.cpp b/src/plasp/sas/Description.cpp index df5b774..aa70ff2 100644 --- a/src/plasp/sas/Description.cpp +++ b/src/plasp/sas/Description.cpp @@ -189,7 +189,7 @@ size_t Description::parseNumber(std::istream &istream) const } 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::max())