From 7e606b8926a2ab9c46e76a2d1c8e8e1d39e8961f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Jul 2018 12:55:04 +0200 Subject: Pass description to cli:invalid_value --- bbot/types-parsers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bbot/types-parsers.cxx') diff --git a/bbot/types-parsers.cxx b/bbot/types-parsers.cxx index 9d31172..ef03f2e 100644 --- a/bbot/types-parsers.cxx +++ b/bbot/types-parsers.cxx @@ -63,9 +63,9 @@ namespace bbot { x = standard_version (v); } - catch (const invalid_argument&) + catch (const invalid_argument& e) { - throw invalid_value (o, v); //@@ Would be nice to include description. + throw invalid_value (o, v, e.what ()); } } } -- cgit v1.1