added exception analyzer to ARM REST API call

This commit is contained in:
Jorge Cotillo 2019-08-17 15:08:07 -07:00
Родитель 3dd8eb7b83
Коммит b98130c5cc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -223,8 +223,7 @@ Class AzureResourceManagerDeploymentService: IDeploymentService {
# For deploy operation, the error is due malformed or incorrect inputs
if($operation -eq "deploy") {
Write-Host "An Exception Occurred While Invoking the Deployment. Please see the error below:";
Write-Host $_.ErrorDetails.Message;
throw $_.ErrorDetails.Message;
throw $(Get-Exception $_);
}
# For validate operation, the error is due to validation failure
else {