Skip to content

Commit 3059848

Browse files
prettier error for tap
1 parent bd01e28 commit 3059848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Function Invoke-ExecCreateTAP {
2222
$Result = New-CIPPTAP -userid $UserID -TenantFilter $TenantFilter -APIName $APIName -Headers $Headers
2323
$StatusCode = [HttpStatusCode]::OK
2424
} catch {
25-
$Result = "$($_.Exception.Message)"
25+
$Result = Get-NormalizedError -message $($_.Exception.Message)
2626
$StatusCode = [HttpStatusCode]::InternalServerError
2727
}
2828

0 commit comments

Comments
 (0)