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

ircd:Ⓜ️:sync: Add catch handler for more descriptive error.

This commit is contained in:
Jason Volk 2019-01-18 15:09:39 -08:00
parent 0dd6abf9ca
commit 1041118b9b

View file

@ -700,6 +700,19 @@ catch(const std::bad_function_call &e)
e.what()
};
}
catch(const m::error &e)
{
log::derror
{
log, "polylog %s '%s' :%s %s",
loghead(data),
name(),
e.what(),
e.content
};
throw;
}
catch(const std::exception &e)
{
log::derror