Improve error message when we have an error code
MODIFY
include/vcpkg/base/expected.h
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;

Improve error message when we have an error code