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