mirror of
https://github.com/matrix-construct/construct
synced 2025-03-16 22:41:46 +01:00
ircd:Ⓜ️ Rewrite db::not_found to m::NOT_FOUND for room::state propagation.
This commit is contained in:
parent
6976119109
commit
c999036a03
1 changed files with 8 additions and 1 deletions
|
@ -393,7 +393,7 @@ void
|
|||
ircd::m::room::state::get(const string_view &type,
|
||||
const string_view &state_key,
|
||||
const event::id::closure &closure)
|
||||
const
|
||||
const try
|
||||
{
|
||||
if(root_id)
|
||||
return m::state::get(root_id, type, state_key, [&closure]
|
||||
|
@ -406,6 +406,13 @@ const
|
|||
auto &column{dbs::room_state};
|
||||
return column(dbs::room_state_key(key, room_id, type, state_key), closure);
|
||||
}
|
||||
catch(const db::not_found &e)
|
||||
{
|
||||
throw m::NOT_FOUND
|
||||
{
|
||||
"(%s,%s) in %s :%s", type, state_key, room_id, e.what()
|
||||
};
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::room::state::get(std::nothrow_t,
|
||||
|
|
Loading…
Add table
Reference in a new issue