(cherry picked from commit a90af92a581b791d7ad0dfa2a822850cde9057f6) Source commit: 2b484c63a4e396b0a0da00bc047dfa913145ef3b
@@ -470,7 +470,7 @@ namespace WinSCP
if (!e.UseStdErr ||
(e.BinaryOutput != ConsoleInitEventStruct.StdInOut.Binary))
{
- _logger.WriteException(new InvalidOperationException("Unexpected console interface options"));
+ throw _logger.WriteException(new InvalidOperationException("Unexpected console interface options"));
}
e.InputType = 3; // pipe