File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,19 @@ if (!amMainInstance) {
200
200
detached : ! isWindows // Detach on Linux, so we can cleanly kill as a group
201
201
} ) ;
202
202
203
- server . stdout . pipe ( process . stdout ) ;
204
- server . stderr . pipe ( process . stderr ) ;
203
+ // Both not null because we pass 'pipe' for args 2 & 3 above.
204
+ const stdout = server . stdout ! ;
205
+ const stderr = server . stderr ! ;
205
206
206
- server . stdout . on ( 'data' , ( data ) => {
207
+ stdout . pipe ( process . stdout ) ;
208
+ stderr . pipe ( process . stderr ) ;
209
+
210
+ server . stdout ! . on ( 'data' , ( data ) => {
207
211
Sentry . addBreadcrumb ( { category : 'server-stdout' , message : data . toString ( 'utf8' ) , level : < any > 'info' } ) ;
208
212
} ) ;
209
213
210
214
let lastError : string | undefined = undefined ;
211
- server . stderr . on ( 'data' , ( data ) => {
215
+ stderr . on ( 'data' , ( data ) => {
212
216
const errorOutput = data . toString ( 'utf8' ) ;
213
217
Sentry . addBreadcrumb ( { category : 'server-stderr' , message : errorOutput , level : < any > 'warning' } ) ;
214
218
You can’t perform that action at this time.
0 commit comments