File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
ReportingServicesTools/Functions/CatalogItems Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -372,21 +372,8 @@ function New-RsSubscription
372
372
catch
373
373
{
374
374
$ex = $_.Exception ;
375
- Write-CallStack - ErrorRecord $_ - Skip 0
376
375
$ErrorMessage = $ex.Message ;
377
- $StackTrace = $ex.StackTrace ;
378
- $FailedItem = $ex.ItemName ;
379
- $ErrorMessage = $ex.Message
380
- $tabCount = 1 ;
381
- while ($ex.InnerException ) {
382
- $ex = $ex.InnerException
383
- $tabs = " `t " * $tabCount
384
- $ErrorMessage += " `n $tabs " + $ex.Message
385
- $StackTrace += " `n $tabs " + $ex.StackTrace ;
386
- }
387
-
388
-
389
- throw (New-Object System.Exception(" Exception occurred while creating subscription! ErrorMessage: [$ErrorMessage ] StackTrace [$StackTrace ] FailedItem [$FailedItem ]" , $Exception ))
376
+ throw (New-Object System.Exception(" Exception occurred while creating subscription! ErrorMessage: [$ErrorMessage ]" , $Exception ))
390
377
}
391
378
}
392
379
}
You can’t perform that action at this time.
0 commit comments