Browse Source

Actually throw the exception (though it has little impact, as it is swallowed later)

(cherry picked from commit a90af92a581b791d7ad0dfa2a822850cde9057f6)

Source commit: 2b484c63a4e396b0a0da00bc047dfa913145ef3b
Martin Prikryl 5 years ago
parent
commit
af9bccd226
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dotnet/internal/ExeSessionProcess.cs

+ 1 - 1
dotnet/internal/ExeSessionProcess.cs

@@ -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