Skip to content

Commit

Permalink
updated warning on non-json response
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek committed Nov 15, 2024
1 parent 6fc310f commit 161464f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Commands/Public/Invoke-ExoCommand.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
}
else
{
Write-Warning "Received non-JSON response: $($response.content.Headers.ContentType.MediaType)"
Write-Warning "Received non-JSON response with http status $($response.StatusCode): $($response.content.Headers.ContentType.MediaType)"
$responseData = $payload
}
}
Expand Down Expand Up @@ -239,7 +239,6 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
}
if($null -ne $ex)
{
Write-Verbose "Handling exception: StatusCode $($ex.StatusCode)`tExoErrorCode: $($ex.ExoErrorCode)`tExoErrorType: $($ex.ExoErrorType)"
switch($ErrorActionPreference)
{
'Stop' { throw $ex }
Expand Down

0 comments on commit 161464f

Please sign in to comment.