cephfs: add doc comments to error type and func

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-02-13 14:45:44 -05:00 committed by Niels de Vos
parent dc289754c8
commit 0c1b895566
1 changed files with 2 additions and 0 deletions

View File

@ -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 == "" {