Skip to content

Commit

Permalink
Applied suggested error handling (#3411)
Browse files Browse the repository at this point in the history
Co-authored-by: Kris Baranek <k.baranek@microsoft.com>
  • Loading branch information
AlexanderSehr and krbar authored Aug 9, 2023
1 parent 82dab32 commit f253637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Get-ModulesMissingFromPrivateBicepRegistry {

$null = Get-AzContainerRegistryTag -RepositoryName $moduleRegistryIdentifier -RegistryName $BicepRegistryName -ErrorAction 'SilentlyContinue' -ErrorVariable 'result'

if ($result.exception.Response.StatusCode -eq 'NotFound') {
if ($result.Exception.Response.StatusCode -eq 'NotFound' -or $result.Exception.Status -eq '404') {
$missingTemplatePaths += $templatePath
}
}
Expand Down

0 comments on commit f253637

Please sign in to comment.