Skip to content

Commit

Permalink
VCST-1396: Improve error message (#78)
Browse files Browse the repository at this point in the history
fix: Improves error message Organization maintainer role not found.
  • Loading branch information
OlegoO committed Jun 17, 2024
1 parent d666f1c commit 3f15b46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ protected virtual async Task<Role> GetMaintainerRole(RegisterOrganizationResult
var role = await _accountService.FindRoleByName(maintainerRoleId) ?? await _accountService.FindRoleById(maintainerRoleId);
if (role == null)
{
SetErrorResult(result, "Role not found", $"Organization maintainer role {maintainerRoleId} not found", tokenSource);
SetErrorResult(result, "Role not found", $"The system could not find a role with the name '{maintainerRoleId}'. Create and configure a role with the name '{maintainerRoleId}'. Alternatively, change the role in the OrganizationMaintainerRole section to match an existing role.", tokenSource);
}

return role;
Expand Down

0 comments on commit 3f15b46

Please sign in to comment.