mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd:Ⓜ️:room::head: Throw error on failure to generate any prev_events.
This commit is contained in:
parent
a9885d4a45
commit
592eb375f6
1 changed files with 5 additions and 0 deletions
|
@ -171,6 +171,11 @@ try
|
|||
}
|
||||
|
||||
assert(limit >= 0);
|
||||
if(unlikely(opts.limit && limit == opts.limit))
|
||||
throw error
|
||||
{
|
||||
"Failed to find any events at the room head"
|
||||
};
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue