0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

modules/client/sync: Catch and drop exception around account_data.

This commit is contained in:
Jason Volk 2018-09-22 15:18:56 -07:00
parent e745697448
commit 8ce3325905

View file

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