Skip to content

Commit 1ee3537

Browse files
committed
Resolve remark
1 parent 735727e commit 1ee3537

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

powershell-adapter/psDscAdapter/powershell.resource.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +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-
$trace = @{'Debug' = ('ERROR: DSC resource {0} module not found.' -f $_)} | ConvertTo-Json -Compress
161-
$host.ui.WriteErrorLine($trace)
160+
('ERROR: DSC resource {0} module not found.' -f $_) | Write-DscTrace
162161
exit 1
163162
}
164163
}

0 commit comments

Comments
 (0)