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/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 7556aab97..baa109d05 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -434,7 +434,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) errstr << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl; for (const auto& fp : pl) { - errstr << " " << fp.sa.str() << ": " << strerror(fp.error) << std::endl + errstr << " " << fp.sa.str() << ": " << fp.error << std::endl << " " << "Created from tag at " << fp.tag->source.str() << std::endl; } } -- cgit v1.3.1-10-gc9f91