nodece commented on PR #1143: URL: https://github.com/apache/pulsar-client-go/pull/1143#issuecomment-1868814174
`fmt.Errorf("component error: %w", err)` is also a good idea to wrap the error, and it works with `errors.Is()`. `%w` introduced by Go 1.30, see https://pkg.go.dev/fmt@go1.13beta1 and https://stackoverflow.com/questions/61283248/format-errors-in-go-s-v-or-w -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org