tarantool / go-tarantool

Tarantool 1.10+ client for Go language
https://pkg.go.dev/github.com/tarantool/go-tarantool/v2
BSD 2-Clause "Simplified" License
180 stars 57 forks source link

api: remove Future.Err() #382

Closed oleg-jukovec closed 6 months ago

oleg-jukovec commented 7 months ago

The method causes an improper error handling because it returns an error only from a client side. Therefore, it is not enough to simply check the error to find out that the request was not completed.

A user should check an error from Future.Get() or Future.GetTyped(). In addition, the user can find out whether there was an error without decoding the response body with Future.GetResponse(), see ExampleErrorNo.