Skip to content

Commit c3ee08d

Browse files
committed
Changed csv file name
1 parent 3a77d0c commit c3ee08d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/MsProdUpdate.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Get-FilesByProfile {
4848
if ($GraphProfile -eq "beta") {
4949
$ModulePrefix = "Microsoft.Graph.Beta"
5050
}
51-
51+
try{
5252
$ModulesToGenerate | ForEach-Object {
5353
$ModuleName = $_
5454
$FullModuleName = "$ModulePrefix.$ModuleName"
@@ -61,6 +61,13 @@ function Get-FilesByProfile {
6161
Get-Files -GraphProfile $GraphProfile -GraphProfilePath $ModulePath -Module $ModuleName -OpenApiContent $OpenApiContent -ModulePrefix $ModulePrefix
6262
}
6363
}
64+
}catch {
65+
66+
Write-Host "`nError Message: " $_.Exception.Message
67+
Write-Host "`nError in Line: " $_.InvocationInfo.Line
68+
Write-Host "`nError in Line Number: "$_.InvocationInfo.ScriptLineNumber
69+
Write-Host "`nError Item Name: "$_.Exception.ItemName
70+
}
6471

6572
}
6673
function Get-Files {
@@ -177,7 +184,7 @@ function Get-ExternalDocsUrl {
177184
if (-not(Test-Path -PathType Container $MissingMsProdHeaderPath)) {
178185
New-Item -ItemType Directory -Force -Path $MissingMsProdHeaderPath
179186
}
180-
$MissingMetaData = "$MissingMsProdHeaderPath\MissingMsProd.csv"
187+
$MissingMetaData = "$MissingMsProdHeaderPath\MissingExternalDocs.csv"
181188
if (-not (Test-Path $MissingMetaData)) {
182189
"Graph profile, Command, UriPath" | Out-File -FilePath $MissingMetaData -Encoding ASCII
183190
}

0 commit comments

Comments
 (0)