Skip to content

Commit bf9fbc5

Browse files
remove text identitfier in case its multiple errors
1 parent d2aecb2 commit bf9fbc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Invoke-AddUser {
7878
$ErrorMessage = $_.TargetObject.Results -join ' '
7979
$ErrorMessage = [string]::IsNullOrWhiteSpace($ErrorMessage) ? $_.Exception.Message : $ErrorMessage
8080
$body = [pscustomobject] @{
81-
'Results' = @("$ErrorMessage")
81+
'Results' = @($ErrorMessage)
8282
}
8383
$StatusCode = [HttpStatusCode]::InternalServerError
8484
}

0 commit comments

Comments
 (0)