ceph-csi/internal/rbd
Humble Chirammal 323cc0e3bb cleanup: avoid comparing errors directly
Go 1.13 contains support for error wrapping. To support wrapping,
fmt.Errorf now has a %w verb for creating wrapped errors, and three
new functions in the errors package ( errors.Unwrap, errors.Is and
errors.As) simplify unwrapping and inspecting wrapped errors.

With this change, If we currently compare errors using ==, we have to
use errors.Is instead. Example:

if err == io.ErrUnexpectedEOF

becomes

if errors.Is(err, io.ErrUnexpectedEOF)

https://tip.golang.org/doc/go1.13#error_wrapping

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-06-17 06:26:11 +00:00
..
controllerserver.go rbd: Add new methods to generate spec strings 2020-06-01 05:54:54 +00:00
driver.go journal: rename CSIJournal to Config 2020-05-15 15:14:48 +00:00
errors.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
identityserver.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodeserver_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodeserver.go rbd: unmap rbd image if the mounting fails 2020-06-01 11:27:25 +00:00
rbd_attach.go cleanup: avoid comparing errors directly 2020-06-17 06:26:11 +00:00
rbd_journal.go journal: split journal types creating a new Connection type 2020-05-15 15:14:48 +00:00
rbd_util_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
rbd_util.go cleanup: avoid comparing errors directly 2020-06-17 06:26:11 +00:00