File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function Get-FilesByProfile {
48
48
if ($GraphProfile -eq " beta" ) {
49
49
$ModulePrefix = " Microsoft.Graph.Beta"
50
50
}
51
-
51
+ try {
52
52
$ModulesToGenerate | ForEach-Object {
53
53
$ModuleName = $_
54
54
$FullModuleName = " $ModulePrefix .$ModuleName "
@@ -61,6 +61,13 @@ function Get-FilesByProfile {
61
61
Get-Files - GraphProfile $GraphProfile - GraphProfilePath $ModulePath - Module $ModuleName - OpenApiContent $OpenApiContent - ModulePrefix $ModulePrefix
62
62
}
63
63
}
64
+ }catch {
65
+
66
+ Write-Host " `n Error Message: " $_.Exception.Message
67
+ Write-Host " `n Error in Line: " $_.InvocationInfo.Line
68
+ Write-Host " `n Error in Line Number: " $_.InvocationInfo.ScriptLineNumber
69
+ Write-Host " `n Error Item Name: " $_.Exception.ItemName
70
+ }
64
71
65
72
}
66
73
function Get-Files {
@@ -177,7 +184,7 @@ function Get-ExternalDocsUrl {
177
184
if (-not (Test-Path - PathType Container $MissingMsProdHeaderPath )) {
178
185
New-Item - ItemType Directory - Force - Path $MissingMsProdHeaderPath
179
186
}
180
- $MissingMetaData = " $MissingMsProdHeaderPath \MissingMsProd .csv"
187
+ $MissingMetaData = " $MissingMsProdHeaderPath \MissingExternalDocs .csv"
181
188
if (-not (Test-Path $MissingMetaData )) {
182
189
" Graph profile, Command, UriPath" | Out-File - FilePath $MissingMetaData - Encoding ASCII
183
190
}
You can’t perform that action at this time.
0 commit comments