From b950eac9baeced533da82b522771ee7574e0b14f Mon Sep 17 00:00:00 2001 From: John Lee Date: Wed, 10 Jul 2024 11:30:10 -0400 Subject: [PATCH] Actually better --- libstuff/libstuff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstuff/libstuff.cpp b/libstuff/libstuff.cpp index 17860e27d..a25b1a084 100644 --- a/libstuff/libstuff.cpp +++ b/libstuff/libstuff.cpp @@ -1769,7 +1769,7 @@ int S_socket(const string& host, bool isTCP, bool isPort, bool isBlocking) { // There was a problem. if (result || !resolved) { freeaddrinfo(resolved); - STHROW("can't resolve host error no#" << result); + STHROW("can't resolve host error no#" + SToStr(result)); } // Grab the resolved address. sockaddr_in* addr = (sockaddr_in*)resolved->ai_addr;