Improve error message when we have an error code

This commit is contained in:
Alexander Karatarakis 2018-02-21 16:58:05 -08:00
parent 099759de63
commit 35e19d5926

View File

@ -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;