Skip to content

Commit ffd9506

Browse files
committed
chore(Fsdk): rename internal method
So that if it crashes again after the last fix, at least we would get a different stacktrace in order for the AI not to be confused and think that the crash might come from an "stale/old binary".
1 parent 44851bb commit ffd9506

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/Fsdk/Process.fs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ module Process =
5252

5353
// Iterative version: List.rev + fold/iter avoids stack overflow on large buffers
5454
// (the buffer is built by prepending, so rev restores chronological order)
55-
let Filter(subBuffer: list<OutputChunk>, outputType: Option<Standard>) =
55+
let FilterByOutputType
56+
(
57+
subBuffer: list<OutputChunk>,
58+
outputType: Option<Standard>
59+
) =
5660
subBuffer
5761
|> List.rev
5862
|> List.fold
@@ -77,15 +81,19 @@ module Process =
7781
Console.Error.Flush()
7882
)
7983

80-
member this.StdOut = Filter(buffer, Some(Standard.Output)).ToString()
84+
member this.StdOut =
85+
FilterByOutputType(buffer, Some(Standard.Output))
86+
.ToString()
8187

82-
member this.StdErr = Filter(buffer, Some(Standard.Error)).ToString()
88+
member this.StdErr =
89+
FilterByOutputType(buffer, Some(Standard.Error))
90+
.ToString()
8391

8492
member this.PrintToConsole() =
8593
Print(buffer)
8694

8795
override self.ToString() =
88-
Filter(buffer, None).ToString()
96+
FilterByOutputType(buffer, None).ToString()
8997

9098
type ProcessResultState =
9199
// exitCode=0, no stdErr

0 commit comments

Comments
 (0)