0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

ircd: Reuse path for error code string.

This commit is contained in:
Jason Volk 2018-09-19 00:02:47 -07:00
parent 592ad284f9
commit c53e02428d

View file

@ -67,10 +67,7 @@ ircd::string_view
ircd::string(const mutable_buffer &buf, ircd::string(const mutable_buffer &buf,
const boost::system::error_code &ec) const boost::system::error_code &ec)
{ {
return fmt::sprintf return string(buf, make_system_error(ec));
{
buf, "%s: %s", ec.category().name(), ec.message()
};
} }
ircd::string_view ircd::string_view