File tree Expand file tree Collapse file tree
Modules/CIPPCore/Public/GraphHelper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ function Get-CippException {
55 )
66
77 [PSCustomObject ]@ {
8- Message = $Exception.Exception.Message
9- NormalizedError = Get-NormalizedError - message $Exception.Exception.Message
10- Position = $Exception.InvocationInfo.PositionMessage
11- StackTrace = ($Exception.ScriptStackTrace | Out-String )
12- ScriptName = $Exception.InvocationInfo.ScriptName
13- LineNumber = $Exception.InvocationInfo.ScriptLineNumber
14- Category = $Exception.CategoryInfo.ToString ()
8+ Message = $Exception.Exception.Message ?? ' Not available'
9+ NormalizedError = (Get-NormalizedError - message $Exception.Exception.Message ) ?? ' Not available'
10+ RawError = ($Exception.Exception.Data [' RawErrorBody' ] ?? $Exception.ErrorDetails.Message ?? $Exception.Exception.Response.Content ) ?? ' Not available'
11+ Position = $Exception.InvocationInfo.PositionMessage ?? ' Not available'
12+ StackTrace = ($Exception.ScriptStackTrace | Out-String ) ?? ' Not available'
13+ ScriptName = $Exception.InvocationInfo.ScriptName ?? ' Not available'
14+ LineNumber = $Exception.InvocationInfo.ScriptLineNumber ?? ' Not available'
15+ Category = ($Exception.CategoryInfo.ToString ()) ?? ' Not available'
1516 }
1617}
You can’t perform that action at this time.
0 commit comments