-
Notifications
You must be signed in to change notification settings - Fork 21
PMM-9377 add compatibility with updated pmm #323
Conversation
ace469b
to
f91ae1a
Compare
919d316
to
5ec6530
Compare
if errors.Is(err, e) { | ||
if strings.Contains(err.Error(), e.Error()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a comment why it's changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some errors contain variable data (e.g connection closed errors include the server IP and port), and those changes between environments so I think it makes sense to check for the relevant substring, as the complete error is not likely to be the same.
you think it should be a code comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, let's make it a code comment
LGTM, please add comment where Nurlan wanted it. |
a9545df
to
d5d98b6
Compare
d5d98b6
to
f476e71
Compare
PMM-9377
Build: SUBMODULES-2355