aboutsummaryrefslogtreecommitdiff
path: root/bbot/types-parsers.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-07 12:55:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-07 12:55:04 +0200
commit7e606b8926a2ab9c46e76a2d1c8e8e1d39e8961f (patch)
tree58e1dd30370df755e54a5bc19c543ec1bae206be /bbot/types-parsers.cxx
parentcd1bfb10fedae8d852e600ee034dcc10d09e4a63 (diff)
Pass description to cli:invalid_value
Diffstat (limited to 'bbot/types-parsers.cxx')
-rw-r--r--bbot/types-parsers.cxx4
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 ());
}
}
}