Browse Source

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

Source commit: dd17ce45e3d304288c96dd00a32fd17c1e119c01
Martin Prikryl 5 years ago
parent
commit
a90af92a58
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