Normally you would expect ok to be true, if a type assertion is correct, see e.g.: https://go.dev/tour/methods/15 However for the FromError method the return value is false, when the underlying type assertion is correct (from docs): <img width="635" alt="image" src="https://github.com/EventStore/EventStore-Client-Go/assets/29224981/86139130-8a16-4a9d-979f-40d5b6025473"> From source: <img width="551" alt="image" src="https://github.com/EventStore/EventStore-Client-Go/assets/29224981/e34bc1dd-e569-43b4-85bd-3b1fb9d51a66"> That's not intuitive and goes against what "ok" means in many other cases in go. Changing this would ofc. be a breaking change
Normally you would expect ok to be true, if a type assertion is correct, see e.g.:
https://go.dev/tour/methods/15
However for the FromError method the return value is false, when the underlying type assertion is correct (from docs):


From source:
That's not intuitive and goes against what "ok" means in many other cases in go.
Changing this would ofc. be a breaking change