mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
modules/client/sync: Catch and drop exception around account_data.
This commit is contained in:
parent
e745697448
commit
8ce3325905
1 changed files with 13 additions and 1 deletions
|
@ -684,7 +684,7 @@ try
|
|||
}
|
||||
catch(const json::not_found &e)
|
||||
{
|
||||
log::error
|
||||
log::critical
|
||||
{
|
||||
"polylog sync for presence error %lu to %lu (vm @ %zu) :%s"
|
||||
,sp.since
|
||||
|
@ -699,6 +699,7 @@ catch(const json::not_found &e)
|
|||
void
|
||||
ircd::m::sync::polylog::account_data(shortpoll &sp,
|
||||
json::stack::object &out)
|
||||
try
|
||||
{
|
||||
json::stack::member member{out, "events"};
|
||||
json::stack::array array{member};
|
||||
|
@ -737,6 +738,17 @@ ircd::m::sync::polylog::account_data(shortpoll &sp,
|
|||
}
|
||||
});
|
||||
}
|
||||
catch(const json::not_found &e)
|
||||
{
|
||||
log::critical
|
||||
{
|
||||
"polylog sync account data error %lu to %lu (vm @ %zu) :%s"
|
||||
,sp.since
|
||||
,sp.current
|
||||
,m::vm::current_sequence
|
||||
,e.what()
|
||||
};
|
||||
}
|
||||
|
||||
void
|
||||
ircd::m::sync::polylog::rooms(shortpoll &sp,
|
||||
|
|
Loading…
Reference in a new issue