mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02:00
Minor fixes / cleanup.
This commit is contained in:
parent
2dece299c0
commit
971496817b
4 changed files with 8 additions and 6 deletions
|
@ -488,7 +488,7 @@ catch(const std::out_of_range &e)
|
|||
}
|
||||
catch(const ircd::http::error &e)
|
||||
{
|
||||
ircd::log::error("console: %s %s", e.what(), e.content.c_str());
|
||||
ircd::log::error("console: %s %s", e.what(), e.content);
|
||||
return true;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
|
|
|
@ -356,7 +356,11 @@ ircd::handle_request(client &client,
|
|||
head.path,
|
||||
head.content_length);
|
||||
|
||||
auto &resource(ircd::resource::find(head.path));
|
||||
auto &resource
|
||||
{
|
||||
ircd::resource::find(head.path)
|
||||
};
|
||||
|
||||
resource(client, pc, head);
|
||||
}
|
||||
|
||||
|
|
|
@ -126,9 +126,7 @@ try
|
|||
catch(const std::exception &e)
|
||||
{
|
||||
log::critical("IRCd terminated: %s", e.what());
|
||||
|
||||
if(ircd::debugmode)
|
||||
std::terminate();
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -125,7 +125,7 @@ try
|
|||
};
|
||||
|
||||
// Sets up the query to find the access_token in the accounts room
|
||||
const m::events::where::equal query
|
||||
const m::event::where::equal query
|
||||
{
|
||||
{ "type", "ircd.access_token" },
|
||||
{ "state_key", access_token }
|
||||
|
|
Loading…
Reference in a new issue