From 0c1b89556648666e551592c08bd67c6f540c0d8e Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 13 Feb 2020 14:45:44 -0500 Subject: [PATCH] cephfs: add doc comments to error type and func Signed-off-by: John Mulligan --- cephfs/cephfs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cephfs/cephfs.go b/cephfs/cephfs.go index a83ec1e..769e57d 100644 --- a/cephfs/cephfs.go +++ b/cephfs/cephfs.go @@ -16,8 +16,10 @@ import ( "github.com/ceph/go-ceph/rados" ) +// CephFSError represents an error condition returned from the CephFS APIs. type CephFSError int +// Error returns the error string for the CephFSError type. func (e CephFSError) Error() string { errno, s := errutil.FormatErrno(int(e)) if s == "" {