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:
parent
592ad284f9
commit
c53e02428d
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue