File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ function Get-ExternalDocsUrl {
119
119
[string ] $File = (Join-Path $PSScriptRoot " ../microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Users/Get-MgUser.md" ),
120
120
[string ] $Module = " Users"
121
121
)
122
+ try {
122
123
if ($UriPath ) {
123
124
124
125
if ($OpenApiContent.openapi && $OpenApiContent.info.version ) {
@@ -193,6 +194,13 @@ function Get-ExternalDocsUrl {
193
194
194
195
}
195
196
}
197
+ } catch {
198
+
199
+ Write-Host " `n Error Message: " $_.Exception.Message
200
+ Write-Host " `n Error in Line: " $_.InvocationInfo.Line
201
+ Write-Host " `n Error in Line Number: " $_.InvocationInfo.ScriptLineNumber
202
+ Write-Host " `n Error Item Name: " $_.Exception.ItemName
203
+ }
196
204
}
197
205
function Append-GraphPrefix {
198
206
param (
You can’t perform that action at this time.
0 commit comments