From faa26ab8f539d5cb19ff7382e8fd4075c2eea564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Thu, 31 May 2018 15:36:51 +0200 Subject: [PATCH] Changed error message --- src/api/core/organizations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index af94e5e7..4b070fee 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -357,7 +357,7 @@ fn send_invite(org_id: String, data: Json, headers: AdminHeaders, co fn confirm_invite(org_id: String, user_id: String, data: Json, headers: AdminHeaders, conn: DbConn) -> EmptyResult { let mut user_to_confirm = match UserOrganization::find_by_uuid(&user_id, &conn) { Some(user) => user, - None => err!("User to confirm doesn't exist") + None => err!("Failed to find user membership") }; if user_to_confirm.org_uuid != org_id { @@ -388,7 +388,7 @@ fn confirm_invite(org_id: String, user_id: String, data: Json, headers: A fn get_user(org_id: String, user_id: String, _headers: AdminHeaders, conn: DbConn) -> JsonResult { let user = match UserOrganization::find_by_uuid(&user_id, &conn) { Some(user) => user, - None => err!("The specified user doesn't exist") + None => err!("Failed to find user membership") }; if user.org_uuid != org_id {