diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-07 12:55:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-07 12:55:04 +0200 |
commit | 7e606b8926a2ab9c46e76a2d1c8e8e1d39e8961f (patch) | |
tree | 58e1dd30370df755e54a5bc19c543ec1bae206be | |
parent | cd1bfb10fedae8d852e600ee034dcc10d09e4a63 (diff) |
Pass description to cli:invalid_value
-rw-r--r-- | bbot/types-parsers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ()); } } } |