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:
parent
403bf52867
commit
ae936d8e55
|
@ -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
|
||||
};
|
||||
}()}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue