mirror of
https://github.com/ceph/go-ceph
synced 2024-12-23 06:33:24 +00:00
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
Block a user