aboutsummaryrefslogtreecommitdiff
path: root/bdep/ci-parsers.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-06 18:12:10 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-06 18:12:10 +0300
commitd9157743d2769aeac62a97c47ebf45493271c21e (patch)
treeba91e5fcb9d4c775640fceb0683516095fdd739a /bdep/ci-parsers.cxx
parentd6d29afcdfac93e855b2ab7b96b08ba1335ad009 (diff)
Add UTF-8 validation error details to diagnostics
Diffstat (limited to 'bdep/ci-parsers.cxx')
-rw-r--r--bdep/ci-parsers.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/bdep/ci-parsers.cxx b/bdep/ci-parsers.cxx
index efee55c..7cf8d62 100644
--- a/bdep/ci-parsers.cxx
+++ b/bdep/ci-parsers.cxx
@@ -39,11 +39,9 @@ namespace bdep
//
auto validate_value = [&o, &v] ()
{
- if (!utf8 (v, codepoint_types::graphic))
- throw invalid_value (o,
- v,
- "not UTF-8 encoded or contains non-graphic "
- "Unicode codepoints");
+ string what;
+ if (!utf8 (v, what, codepoint_types::graphic))
+ throw invalid_value (o, v, what);
};
if (o == "--build-email")