Updated: the errors.Error.Error() method now shows unique text for each ErrorCode value. I just copied the comments at the top of every ErrorCode value and changed the wording a bit.
Motivation: I was logging the errors in an app of mine and noticed the output given by Error() didn't include the code. I changed the code locally as shown here and it discovered I was experiencing an ErrorCodeDeadlineExceeded.
Updated: the errors.Error.Error() method now shows unique text for each ErrorCode value. I just copied the comments at the top of every ErrorCode value and changed the wording a bit.
Motivation: I was logging the errors in an app of mine and noticed the output given by
Error()
didn't include the code. I changed the code locally as shown here and it discovered I was experiencing anErrorCodeDeadlineExceeded
.