EventStore / EventStore-Client-Go

Go Client for Event Store version 20 and above.
Apache License 2.0
103 stars 25 forks source link

adds unique text in `Error()` for each `ErrorCode` #130

Closed TimSimpson closed 1 year ago

TimSimpson commented 1 year ago

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.