Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): surface readable Windows Explorer reveal errors #11173

Closedfloklein(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/11173/headopened View on GitHub

Showing 3 changed files with 140 additions and 5 deletions.

x
0 of 3 viewed, 3 left
86 additions and 4 deletionsapps/server/src/process/externalLauncher.test.tsModified
View file
@@ -29,6 +29,7 @@
interface MockSpawnResult {
readonly exitCode?: number;
readonly stdout?: string;
+ readonly stderr?: string;
/** Never deliver an exit code, like a child wedged on a broken desktop session. */
readonly stall?: boolean;
@@ -50,7 +51,10 @@
input.stdout === undefined
? Stream.empty
: Stream.make(new TextEncoder().encode(input.stdout)),
- stderr: Stream.empty,
+ stderr:
+ input.stderr === undefined
+ ? Stream.empty
+ : Stream.make(new TextEncoder().encode(input.stderr)),
all: Stream.empty,
getInputFd: () => Sink.drain,
getOutputFd: () => Stream.empty,
@@ -194,6 +198,50 @@
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
​
+it.effect.each([
+ {
+ stderr: "The system cannot find the file specified.",
+ expected: "The system cannot find the file specified.",