We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79133d commit a86fd9bCopy full SHA for a86fd9b
go/client.go
@@ -1152,7 +1152,10 @@ func (c *Client) startCLIServer(ctx context.Context) error {
1152
select {
1153
case <-timeout:
1154
killErr := c.killProcess()
1155
- return errors.Join(fmt.Errorf("timeout waiting for CLI server to start"), killErr)
+ return errors.Join(errors.New("timeout waiting for CLI server to start"), killErr)
1156
+ case <-c.processDone:
1157
+ killErr := c.killProcess()
1158
+ return errors.Join(errors.New("CLI server process exited before reporting port"), killErr)
1159
default:
1160
if scanner.Scan() {
1161
line := scanner.Text()
0 commit comments