Skip to content

Commit 54460bf

Browse files
committed
Use error when writing trace
1 parent aa8bf9e commit 54460bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell-adapter/psDscAdapter/powershell.resource.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ switch ($Operation) {
157157
# check if all the desired modules are in the cache
158158
$moduleInput | ForEach-Object {
159159
if ($dscResourceCache.type -notcontains $_) {
160-
('ERROR: DSC resource {0} module not found.' -f $_) | Write-DscTrace
160+
('DSC resource {0} module not found.' -f $_) | Write-DscTrace -Operation Error
161161
exit 1
162162
}
163163
}

0 commit comments

Comments
 (0)