diff --git a/PSApi.psm1 b/PSApi.psm1 index 8ea5e96..131aa10 100644 --- a/PSApi.psm1 +++ b/PSApi.psm1 @@ -414,7 +414,7 @@ function RequestHandler ($context, $Command, $configuration) { $response_data = "Something bad happened :(

HTTP 500 - Internal Server Error

-

Command:
$Command $(if($global:JSONErrorMode) { 'true' } else { 'false' })

+

Command:
$Command

Error message:
$($_.Exception.Message)

Parameters:
$((($params | Out-String) -replace "`n", "
") -replace " ", " ")

Category info:
$((($_.CategoryInfo | Out-String) -replace "`n", "
") -replace " ", " ")