0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02: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,
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