Skip to content

Commit

Permalink
Merge pull request #143 from ClaudioESSilva/ImproveErrorMessage
Browse files Browse the repository at this point in the history
Improve Error message on Grant-RsCatalogItemRole
  • Loading branch information
jtarquino authored Feb 13, 2018
2 parents 034f4b9 + 441922c commit bfe779c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bfe779c

Please sign in to comment.