mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
PSRP currently relies on XML for the transport messages. When using PSRP over SSH, if the target side fails, it sends back a text message. PSRP sees this and doesn't know what to do so it throws a generic message which makes troubleshooting the issue more difficult. Change here is to throw the text message which now looks like: >new-pssession : [test-machine] There is an error processing data from the background process. Error reported: Invalid argument '-np', did you mean:. Previously: >new-pssession : [test-machine] There is an error processing data from the background process. Error reported: Cannot process an element with node type "Text". Only Element and EndElement node types are supported.. Since it's processing one line at a time, not able to get the whole message.