0
0
Fork 0
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:
Jason Volk 2017-09-21 02:12:29 -07:00
parent 2dece299c0
commit 971496817b
4 changed files with 8 additions and 6 deletions

View file

@ -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)

View file

@ -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);
}

View file

@ -126,9 +126,7 @@ try
catch(const std::exception &e)
{
log::critical("IRCd terminated: %s", e.what());
if(ircd::debugmode)
std::terminate();
std::terminate();
}
//

View file

@ -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 }