File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Tasks/Manage-AutomationAccount Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -384,11 +384,13 @@ if (Check-Scope -Scope $scope -RequiredScope 'Modules') {
384
384
$existingPackage = Get-AutoPackage - RuntimeEnvironment $module.RuntimeEnvironment - Name $module.Name - ErrorAction Stop
385
385
}
386
386
catch {
387
- Write-Error $_
387
+ Write-Warning $_
388
388
if ($_.Exception.Message -like ' *NotFound*' ) {
389
389
# if module not found, do nothing -> will be installed
390
390
# {"code":"NotFound","message":"The package does not exist in runtime environment PowerShell-74. "}
391
+ Write-Warning " Error NotFound"
391
392
} else {
393
+ Write-Warning " Uknown error"
392
394
throw
393
395
}
394
396
}
Original file line number Diff line number Diff line change 2
2
"manifestVersion" : 1 ,
3
3
"id" : " Manage-AutomationAccount" ,
4
4
"name" : " Manage-AutomationAccount" ,
5
- "version" : " 2.0.1 " ,
5
+ "version" : " 2.0.2 " ,
6
6
"publisher" : " GreyCorbelSolutions" ,
7
7
"targets" : [
8
8
{
You can’t perform that action at this time.
0 commit comments