Fix a compile error when SSL is disabled.

This commit is contained in:
Chunting Gu
2019-06-13 14:47:00 +08:00
parent 8c09189b14
commit 889024d6c7
5 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -47,8 +47,9 @@ std::string FromExtension(const std::string& extension,
// -----------------------------------------------------------------------------
std::ostream& operator<<(std::ostream& os, const Error& error) {
os << "ERROR(";
os << std::to_string(static_cast<int>(error.code()));
os << ": " << error.message();
os << "): " << error.message();
if (error.timeout()) {
os << " (timeout)";
}