From c53e02428de6344068463b25a9dd37061928e506 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 19 Sep 2018 00:02:47 -0700 Subject: [PATCH] ircd: Reuse path for error code string. --- ircd/exception.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ircd/exception.cc b/ircd/exception.cc index 0dc6c6b40..a4b27a191 100644 --- a/ircd/exception.cc +++ b/ircd/exception.cc @@ -67,10 +67,7 @@ ircd::string_view ircd::string(const mutable_buffer &buf, const boost::system::error_code &ec) { - return fmt::sprintf - { - buf, "%s: %s", ec.category().name(), ec.message() - }; + return string(buf, make_system_error(ec)); } ircd::string_view