mirror of
https://github.com/matrix-construct/construct
synced 2024-10-04 14:48:56 +02: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)
|
catch(const json::not_found &e)
|
||||||
{
|
{
|
||||||
log::error
|
log::critical
|
||||||
{
|
{
|
||||||
"polylog sync for presence error %lu to %lu (vm @ %zu) :%s"
|
"polylog sync for presence error %lu to %lu (vm @ %zu) :%s"
|
||||||
,sp.since
|
,sp.since
|
||||||
|
@ -699,6 +699,7 @@ catch(const json::not_found &e)
|
||||||
void
|
void
|
||||||
ircd::m::sync::polylog::account_data(shortpoll &sp,
|
ircd::m::sync::polylog::account_data(shortpoll &sp,
|
||||||
json::stack::object &out)
|
json::stack::object &out)
|
||||||
|
try
|
||||||
{
|
{
|
||||||
json::stack::member member{out, "events"};
|
json::stack::member member{out, "events"};
|
||||||
json::stack::array array{member};
|
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
|
void
|
||||||
ircd::m::sync::polylog::rooms(shortpoll &sp,
|
ircd::m::sync::polylog::rooms(shortpoll &sp,
|
||||||
|
|
Loading…
Reference in a new issue