File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export async function startCLI(): Promise<void> {
87
87
88
88
// When running as a spawned UI server process, argv[1] will be '__server-harness'
89
89
// instead of a normal command. This allows the same binary to serve both CLI and server roles.
90
- if ( process . argv [ 1 ] === SERVER_HARNESS_COMMAND ) {
90
+ if ( process . argv [ 2 ] === SERVER_HARNESS_COMMAND ) {
91
91
program . addCommand ( serverHarness ) ;
92
92
}
93
93
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const serverHarness = new Command('__server-harness')
47
47
process . on ( 'uncaughtException' , ( err , somethingelse ) => {
48
48
logger . error ( `Uncaught error in tools process: ${ err } ${ somethingelse } ` ) ;
49
49
} ) ;
50
- process . on ( 'unhandledRejection' , ( reason , p ) => {
50
+ process . on ( 'unhandledRejection' , ( reason , _p ) => {
51
51
logger . error ( `Unhandled rejection in tools process: ${ reason } ` ) ;
52
52
} ) ;
53
53
You can’t perform that action at this time.
0 commit comments