aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r--bdep/utility.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx
index 8821790..0e19691 100644
--- a/bdep/utility.cxx
+++ b/bdep/utility.cxx
@@ -300,11 +300,11 @@ namespace bdep
void
validate_utf8_graphic (const string& s, const char* what, const char* opt)
{
- if (!utf8 (s, codepoint_types::graphic))
+ string ed;
+ if (!utf8 (s, ed, codepoint_types::graphic))
{
diag_record dr (fail);
- dr << what << " '" << s << "' is not UTF-8 encoded or contains "
- << "non-graphic Unicode codepoints";
+ dr << "invalid " << what << " '" << s << "': " << ed;
if (opt != nullptr)
dr << info << "consider using " << opt << " to override";