mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
modules/client/createroom: More descriptive error propagation here.
This commit is contained in:
parent
cf0196d374
commit
e75b75e3f9
1 changed files with 12 additions and 1 deletions
|
@ -351,6 +351,17 @@ try
|
|||
const m::user::id &user_id{_user_id};
|
||||
invite(room, user_id, creator, content);
|
||||
}
|
||||
catch(const m::error &e)
|
||||
{
|
||||
report_error
|
||||
{
|
||||
errors, room_id, creator, "Failed to invite user '%s' :%s :%s :%s",
|
||||
_user_id,
|
||||
e.what(),
|
||||
e.errcode(),
|
||||
e.errstr()
|
||||
};
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
report_error
|
||||
|
|
Loading…
Reference in a new issue