mirror of https://github.com/ceph/go-ceph
cephfs: add error for function args that must have data
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
afc819354b
commit
bf0e4723e2
|
@ -6,6 +6,7 @@ package cephfs
|
|||
import "C"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/ceph/go-ceph/internal/errutil"
|
||||
|
@ -36,6 +37,14 @@ func getError(e C.int) error {
|
|||
|
||||
// Public go errors:
|
||||
|
||||
var (
|
||||
// ErrEmptyArgument may be returned if a function argument is passed
|
||||
// a zero-length slice or map.
|
||||
ErrEmptyArgument = errors.New("Argument must contain at least one item")
|
||||
)
|
||||
|
||||
// Public CephFSErrors:
|
||||
|
||||
const (
|
||||
// ErrNotConnected may be returned when client is not connected
|
||||
// to a cluster.
|
||||
|
|
Loading…
Reference in New Issue