diff --git a/modules/client/profile.cc b/modules/client/profile.cc index ee47a1d97..5c99e7c87 100644 --- a/modules/client/profile.cc +++ b/modules/client/profile.cc @@ -261,6 +261,7 @@ void profile_get(const m::user &user, const string_view &key, const m::user::profile_closure &closure) +try { const m::user::room user_room { @@ -278,6 +279,15 @@ profile_get(const m::user &user, closure(value); }); } +catch(const m::NOT_FOUND &e) +{ + throw m::NOT_FOUND + { + "Nothing about '%s' and/or profile for '%s'", + key, + string_view{user.user_id} + }; +} m::event::id::buf profile_set(const m::user &user,