mirror of https://github.com/ceph/go-ceph
cephfs: add doc comments to error type and func
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
dc289754c8
commit
0c1b895566
|
@ -16,8 +16,10 @@ import (
|
||||||
"github.com/ceph/go-ceph/rados"
|
"github.com/ceph/go-ceph/rados"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// CephFSError represents an error condition returned from the CephFS APIs.
|
||||||
type CephFSError int
|
type CephFSError int
|
||||||
|
|
||||||
|
// Error returns the error string for the CephFSError type.
|
||||||
func (e CephFSError) Error() string {
|
func (e CephFSError) Error() string {
|
||||||
errno, s := errutil.FormatErrno(int(e))
|
errno, s := errutil.FormatErrno(int(e))
|
||||||
if s == "" {
|
if s == "" {
|
||||||
|
|
Loading…
Reference in New Issue