Skip to content
Permalink
Browse files

Fixed: error output redirected.

Added error outputs redirect, which provides a display of errors
encountered by FSI while evaluating.
  • Loading branch information...
mathias-brandewinder committed Dec 5, 2012
1 parent 2911b7f commit e9b504f02c7cd185838cd7bed95dcb63e769c24b
Showing with 2 additions and 0 deletions.
  1. +2 −0 FsiRunner/FsiRunner/Session.fs
@@ -10,6 +10,7 @@ type public FsiSession(fsiPath: string) =
do
info.RedirectStandardInput <- true
info.RedirectStandardOutput <- true
info.RedirectStandardError <- true
info.UseShellExecute <- false
info.CreateNoWindow <- true
info.FileName <- fsiPath
@@ -25,6 +26,7 @@ type public FsiSession(fsiPath: string) =
member this.Start() =
fsiProcess.Start()
fsiProcess.BeginOutputReadLine()
fsiProcess.BeginErrorReadLine()

member this.AddLine(line: string) =
fsiProcess.StandardInput.WriteLine(line)

0 comments on commit e9b504f

Please sign in to comment.
You can’t perform that action at this time.