From 612e1a30274bf4e239077f63a877440eb134da4d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 16 Jan 2023 22:54:02 +0000 Subject: Store the actual error in FailedPort instead of an error code. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 05b94de8b..171f7368a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -108,7 +108,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) continue; if (!BindPort(tag, bindspec, old_ports, protocol)) - failed_ports.emplace_back(errno, bindspec, tag); + failed_ports.emplace_back(strerror(errno), bindspec, tag); else bound++; } @@ -141,7 +141,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) bindspec.from_unix(fullpath); if (!BindPort(tag, bindspec, old_ports, 0)) - failed_ports.emplace_back(errno, bindspec, tag); + failed_ports.emplace_back(strerror(errno), bindspec, tag); else bound++; } -- cgit v1.3.1-10-gc9f91