Skip to content

Commit cdc8b0f

Browse files
Remove verbose
1 parent 7913f54 commit cdc8b0f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/dsc/psresourceget.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,13 @@ if ($null -eq (Get-Module -Name Microsoft.PowerShell.PSResourceGet)) {
890890
}
891891

892892
Write-Trace -level trace -message "Microsoft.PowerShell.PSResourceGet module is not imported. Importing it."
893-
Import-Module -Name Microsoft.PowerShell.PSResourceGet -Force -ErrorAction Stop -Verbose
893+
894+
try {
895+
Import-Module -Name Microsoft.PowerShell.PSResourceGet -Force -ErrorAction Stop
896+
}
897+
catch {
898+
Write-Trace -level info -message "IGNORING Failed to import Microsoft.PowerShell.PSResourceGet module. Error details: $($_.Exception.Message)"
899+
}
894900
}
895901

896902
switch ($Operation.ToLower()) {

0 commit comments

Comments
 (0)