0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

modules/client/createroom: More descriptive error propagation here.

This commit is contained in:
Jason Volk 2019-04-27 18:33:23 -07:00
parent cf0196d374
commit e75b75e3f9

View file

@ -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()
};