Skip to content

Commit fafcdef

Browse files
committed
ok actually I'm so lost
1 parent 91c53be commit fafcdef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/e2e/helpers.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,19 @@ export const downloadCoderVersion = async (
281281
env: {
282282
...process.env,
283283
XDG_CACHE_HOME: "/tmp/coder-e2e-cache",
284+
TRACE: "1", // tells install.sh to `set -x`, helpful if something goes wrong
284285
},
285286
},
286287
);
287288
// eslint-disable-next-line no-console -- Needed for debugging
288-
cp.stderr.on("data", (data) => console.log(data.toString()));
289+
cp.stderr.on("data", (data) => console.error(data.toString()));
290+
// eslint-disable-next-line no-console -- Needed for debugging
291+
cp.stdout.on("data", (data) => console.log(data.toString()));
289292
cp.on("close", (code) => {
290293
if (code === 0) {
291294
resolve();
292295
} else {
293-
reject(new Error("curl failed with code " + code));
296+
reject(new Error("install.sh failed with code " + code));
294297
}
295298
});
296299
});

0 commit comments

Comments
 (0)