Skip to content

Commit dcfcd0d

Browse files
committed
add logs
1 parent beb005d commit dcfcd0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tasks/Manage-AutomationAccount/Manage-AutomationAccount.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,13 @@ if (Check-Scope -Scope $scope -RequiredScope 'Modules') {
384384
$existingPackage = Get-AutoPackage -RuntimeEnvironment $module.RuntimeEnvironment -Name $module.Name -ErrorAction Stop
385385
}
386386
catch {
387-
Write-Error $_
387+
Write-Warning $_
388388
if ($_.Exception.Message -like '*NotFound*') {
389389
#if module not found, do nothing -> will be installed
390390
#{"code":"NotFound","message":"The package does not exist in runtime environment PowerShell-74. "}
391+
Write-Warning "Error NotFound"
391392
} else {
393+
Write-Warning "Uknown error"
392394
throw
393395
}
394396
}

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "Manage-AutomationAccount",
44
"name": "Manage-AutomationAccount",
5-
"version": "2.0.1",
5+
"version": "2.0.2",
66
"publisher": "GreyCorbelSolutions",
77
"targets": [
88
{

0 commit comments

Comments
 (0)