mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +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,
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue