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:
parent
0dd6abf9ca
commit
1041118b9b
1 changed files with 13 additions and 0 deletions
13
ircd/m/m.cc
13
ircd/m/m.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue