diff options
| author | 2023-01-16 22:54:02 +0000 | |
|---|---|---|
| committer | 2023-01-16 22:54:02 +0000 | |
| commit | 612e1a30274bf4e239077f63a877440eb134da4d (patch) | |
| tree | 77402bfa73ce247460a6613de28a393dde2122f6 /include/socket.h | |
| 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 'include/socket.h')
| -rw-r--r-- | include/socket.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<ConfigTag> tag; + const std::shared_ptr<ConfigTag> tag; - FailedPort(int err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg) + FailedPort(const std::string& err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg) : error(err) , sa(addr) , tag(cfg) |
