aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-02-21 16:58:05 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-02-21 19:35:12 -0800
commit35e19d5926f593b135878ee64abf06cf27dd91d9 (patch)
tree1421879605af8d9cc203668d70298847070f6aa9 /toolsrc/include
parent099759de63e2d64ffe80f6c9244a2390e47316bc (diff)
downloadvcpkg-35e19d5926f593b135878ee64abf06cf27dd91d9.tar.gz
vcpkg-35e19d5926f593b135878ee64abf06cf27dd91d9.zip
Improve error message when we have an error code
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/expected.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/expected.h b/toolsrc/include/vcpkg/base/expected.h
index 1f3d94638..e20f723db 100644
--- a/toolsrc/include/vcpkg/base/expected.h
+++ b/toolsrc/include/vcpkg/base/expected.h
@@ -38,7 +38,7 @@ namespace vcpkg
const std::error_code& error() const { return m_err; }
std::error_code& error() { return m_err; }
- CStringView to_string() const { return "value was error"; }
+ CStringView to_string() const { return m_err.message(); }
private:
std::error_code m_err;