0
0
Fork 0
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:
Jason Volk 2020-03-25 18:23:36 -07:00
parent a9885d4a45
commit 592eb375f6

View file

@ -171,6 +171,11 @@ try
} }
assert(limit >= 0); 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) catch(const std::exception &e)
{ {