lib/winrm/psrp/receive_response_reader.rb in winrm-2.0.1 vs lib/winrm/psrp/receive_response_reader.rb in winrm-2.0.2
- old
+ new
@@ -76,9 +76,13 @@
case message.type
when WinRM::PSRP::Message::MESSAGE_TYPES[:error_record]
type = :stderr
when WinRM::PSRP::Message::MESSAGE_TYPES[:pipeline_host_call]
type = :stderr if message.data.include?('WriteError')
+ when WinRM::PSRP::Message::MESSAGE_TYPES[:pipeline_state]
+ if message.parsed_data.pipeline_state == WinRM::PSRP::MessageData::PipelineState::FAILED
+ type = :stderr
+ end
end
type
end
def find_exit_code(message)