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,11 +351,22 @@ 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
|
||||
{
|
||||
errors, room_id, creator, "Failed to invite user '%s': %s",
|
||||
errors, room_id, creator, "Failed to invite user '%s' :%s",
|
||||
_user_id,
|
||||
e.what()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue