File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -281,16 +281,19 @@ export const downloadCoderVersion = async (
281
281
env : {
282
282
...process . env ,
283
283
XDG_CACHE_HOME : "/tmp/coder-e2e-cache" ,
284
+ TRACE : "1" , // tells install.sh to `set -x`, helpful if something goes wrong
284
285
} ,
285
286
} ,
286
287
) ;
287
288
// 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 ( ) ) ) ;
289
292
cp . on ( "close" , ( code ) => {
290
293
if ( code === 0 ) {
291
294
resolve ( ) ;
292
295
} else {
293
- reject ( new Error ( "curl failed with code " + code ) ) ;
296
+ reject ( new Error ( "install.sh failed with code " + code ) ) ;
294
297
}
295
298
} ) ;
296
299
} ) ;
You can’t perform that action at this time.
0 commit comments