diff options
| author | 2023-01-16 22:54:02 +0000 | |
|---|---|---|
| committer | 2023-01-16 22:54:02 +0000 | |
| commit | 612e1a30274bf4e239077f63a877440eb134da4d (patch) | |
| tree | 77402bfa73ce247460a6613de28a393dde2122f6 /src/socket.cpp | |
| parent | Fix some testing changes that snuck in to the previous commit. (diff) | |
Store the actual error in FailedPort instead of an error code.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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++; } |
