Skip to content

Commit

Permalink
Update error message in tools repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jan 16, 2021
1 parent a39c08e commit 7098235
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion eng/common/docgeneration/Generate-DocIndex.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,7 @@ if ($GetGithubIoDocIndexFn -and (Test-Path "function:$GetGithubIoDocIndexFn"))
}
else
{
LogWarning "The function 'GetGithubIoDocIndexFn' was not found."
LogWarning "The function for 'GetGithubIoDocIndexFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
}
4 changes: 3 additions & 1 deletion eng/common/scripts/Create-APIReview.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ if ($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiRev
}
else
{
Write-Host "Function 'FindArtifactForApiReviewFn' is not found"
Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
exit(1)
}

Expand Down
4 changes: 3 additions & 1 deletion eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ function Get-PkgProperties
}
else
{
LogError "The function '$GetPackageInfoFromRepoFn' was not found."
LogError "The function for '$GetPackageInfoFromRepoFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
}

if ($pkgProps -ne $null)
Expand Down
4 changes: 3 additions & 1 deletion eng/common/scripts/artifact-metadata-parsing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ function RetrievePackages($artifactLocation) {
}
else
{
LogError "The function '$GetPackageInfoFromPackageFileFn' was not found."
LogError "The function for '$GetPackageInfoFromPackageFileFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
}
}

Expand Down
4 changes: 3 additions & 1 deletion eng/common/scripts/copy-docs-to-blobstorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ if ($PublishGithubIODocsFn -and (Test-Path "Function:$PublishGithubIODocsFn"))
}
else
{
LogWarning "The function '$PublishGithubIODocsFn' was not found."
LogWarning "The function for '$PublishGithubIODocsFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
}

4 changes: 3 additions & 1 deletion eng/common/scripts/update-docs-ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ foreach ($config in $targets) {
}
else
{
LogWarning "The function '$UpdateDocCIFn' was not found."
LogWarning "The function for '$UpdateDocCIFn' was not found.`
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.`
See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure"
}
}
}

0 comments on commit 7098235

Please sign in to comment.