From 393569482e6ef3577381c3e98df07cd68d996e4a Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 2 Jul 2020 10:23:23 +0200 Subject: [PATCH] doc: add comments to cephfs error methods Signed-off-by: Niels de Vos --- internal/cephfs/errors.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cephfs/errors.go b/internal/cephfs/errors.go index ec5bb4ca0..4ae376e53 100644 --- a/internal/cephfs/errors.go +++ b/internal/cephfs/errors.go @@ -22,6 +22,7 @@ type ErrInvalidVolID struct { err error } +// Error returns a user presentable string of the error. func (e ErrInvalidVolID) Error() string { return e.err.Error() } @@ -32,6 +33,7 @@ type ErrNonStaticVolume struct { err error } +// Error returns a user presentable string of the error. func (e ErrNonStaticVolume) Error() string { return e.err.Error() } @@ -41,6 +43,7 @@ type ErrVolumeNotFound struct { err error } +// Error returns a user presentable string of the error. func (e ErrVolumeNotFound) Error() string { return e.err.Error() }