0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

ircd::resource: Improve method already-registered error msg.

This commit is contained in:
Jason Volk 2019-03-31 18:37:30 -07:00
parent 403bf52867
commit ae936d8e55

View file

@ -265,13 +265,14 @@ ircd::resource::method::method(struct resource &resource,
if(!iit.second)
throw error
{
"resource \"%s\" already registered", name
"Resource method '%s' already registered to '%s'",
name,
this->resource->path
};
return unique_const_iterator<decltype(resource::methods)>
{
this->resource->methods,
iit.first
this->resource->methods, iit.first
};
}()}
{