File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,8 +274,18 @@ function ConvertInputToPSResource(
274274
275275# catch any un-caught exception and write it to the error stream
276276trap {
277- Write-Trace - Level Error - message $_.Exception.Message
278- exit 1
277+ # Write-Trace -Level Error -message $_.Exception.Message
278+ # exit 1
279+
280+ $e = $_.Exception
281+
282+ while ($e ) {
283+ " -----"
284+ $e.GetType ().FullName
285+ $e.Message
286+ $e = $e.InnerException
287+ }
288+
279289}
280290
281291function GetPSResourceList {
@@ -512,7 +522,7 @@ function ExportOperation {
512522 }
513523
514524 ' repositorylist' {
515- Write-Trace - level error - message " Get operation is not implemented for RepositoryList resource."
525+ Write-Trace - level error - message " Export operation is not implemented for RepositoryList resource."
516526 exit 8
517527 }
518528 ' psresource' {
You can’t perform that action at this time.
0 commit comments