tinswzy commented on issue #1315:
URL: 
https://github.com/apache/pulsar-client-go/issues/1315#issuecomment-2522472584

   For example, in the following code:
   ```
   #pulsar/internal/connection.go 
   type connection struct {
       logicalAddr  *url.URL
       physicalAddr *url.URL
   }
   ......
   func (c *connection) waitUntilReady() error {
       select {
       case <-c.readyCh:
          return nil
       case <-c.closeCh:
          // Connection has been closed while waiting for the readiness.
          return errors.New("connection error")
       }
   }
   ```
   To modify the errors.New statement to provide more detailed information, you 
can include additional context in the error message.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to