Skip to content

Commit

Permalink
Fixed minor in displaying error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNotWrongUsually committed Mar 21, 2020
1 parent 1adac4c commit eb886a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PSApi.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function RequestHandler ($context, $Command, $configuration) {
$response_data = "<html><head><title>Something bad happened :(</title></head>
<body><font face='Courier New'>
<h1 style='background-color: #000000; color: #800000'>HTTP 500 - Internal Server Error</h1>
<p><b>Command:</b><br>$Command $(if($global:JSONErrorMode) { 'true' } else { 'false' })</p>
<p><b>Command:</b><br>$Command</p>
<p><b>Error message:</b><br>$($_.Exception.Message)</p>
<p><b>Parameters:</b><br>$((($params | Out-String) -replace "`n", "<br>") -replace " ", "&nbsp;")</p>
<p><b>Category info:</b><br>$((($_.CategoryInfo | Out-String) -replace "`n", "<br>") -replace " ", "&nbsp;")</p>
Expand Down

0 comments on commit eb886a7

Please sign in to comment.