Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions adapters/powershell/psDscAdapter/powershell.resource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function Write-TraceQueue() {
while (!$traceQueue.IsEmpty) {
if ($traceQueue.TryDequeue([ref] $trace)) {
$host.ui.WriteErrorLine(($trace | ConvertTo-Json -Compress -Depth 10))
} else {
# this should only fail if empty, so we just return
return
}
Comment thread
SteveL-MSFT marked this conversation as resolved.
Outdated
}
}
Expand Down
3 changes: 3 additions & 0 deletions resources/PSScript/psscript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ function Write-TraceQueue() {
while (!$traceQueue.IsEmpty) {
if ($traceQueue.TryDequeue([ref] $trace)) {
$host.ui.WriteErrorLine($trace)
} else {
# this should only fail if empty, so we just return
return
}
Comment thread
SteveL-MSFT marked this conversation as resolved.
Outdated
}
}
Expand Down
Loading