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. --- include/socket.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h index ea5b37ea0..6d7cee958 100644 --- a/include/socket.h +++ b/include/socket.h @@ -159,15 +159,15 @@ namespace irc struct CoreExport FailedPort final { /** The error which happened during binding. */ - int error; + const std::string error; /** The endpoint on which we were attempting to bind. */ - irc::sockets::sockaddrs sa; + const irc::sockets::sockaddrs sa; /** The config tag that the listener was created from. */ - std::shared_ptr tag; + const std::shared_ptr tag; - FailedPort(int err, irc::sockets::sockaddrs& addr, const std::shared_ptr& cfg) + FailedPort(const std::string& err, irc::sockets::sockaddrs& addr, const std::shared_ptr& cfg) : error(err) , sa(addr) , tag(cfg) -- cgit v1.3.1-10-gc9f91