From 441922c01ed5fd443315df043087f38d3ace4fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Silva?= Date: Tue, 13 Feb 2018 18:12:09 +0000 Subject: [PATCH] Improve Error message --- .../Functions/Security/Grant-RsCatalogItemRole.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReportingServicesTools/Functions/Security/Grant-RsCatalogItemRole.ps1 b/ReportingServicesTools/Functions/Security/Grant-RsCatalogItemRole.ps1 index 0bed6bfd..5d4918d9 100644 --- a/ReportingServicesTools/Functions/Security/Grant-RsCatalogItemRole.ps1 +++ b/ReportingServicesTools/Functions/Security/Grant-RsCatalogItemRole.ps1 @@ -174,7 +174,7 @@ function Grant-RsCatalogItemRole } catch { - throw (New-Object System.Exception("Error occurred while granting $($role.Name) to $($policy.GroupUserName) on $Path! $($_.Exception.Message)", $_.Exception)) + throw (New-Object System.Exception("Error occurred while granting $($role.Name) to $($policy.GroupUserName) on $Path! Please verify if you have typed the user full name. You can get the current permissions by running the Get-RsCatalogItemRole command. $($_.Exception.Message)", $_.Exception)) } #endregion Assign Permissions }