rados: add error for function args that must have data

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-06-29 16:10:18 -04:00 committed by John Mulligan
parent 08bb0096c4
commit 8b16f804a3
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ func getErrorIfNegative(ret C.int) error {
var (
// ErrNotConnected is returned when functions are called without a RADOS connection
ErrNotConnected = errors.New("RADOS not connected")
// 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 radosErrors: