Add httplib::Error to std::string function (#999)

Fixes: #978
This commit is contained in:
Gregor Jasny authored and GitHub committed 2021-07-19 21:17:44 -04:00
1 parent 9f2064a8ed
commit ea2f69a0d7
2 files changed
+25 -2

No files matched your search

+1 -1
View File
@@ -542,7 +542,7 @@ TEST(ConnectionErrorTest, InvalidHostCheckResultErrorToString) {
ASSERT_TRUE(!res);
stringstream s;
s << "error code: " << res.error();
EXPECT_EQ("error code: 2", s.str());
EXPECT_EQ("error code: Connection (2)", s.str());
}
TEST(ConnectionErrorTest, InvalidPort) {