mirror of https://github.com/ceph/go-ceph
rbd: minor fixes in error.go
1. Generalize the message for ErrNoIOContext 2. Fixed a typo Signed-off-by: Mudit Agarwal muagarwa@redhat.com
This commit is contained in:
parent
5b6c599176
commit
3c416e264a
|
@ -52,11 +52,11 @@ func getErrorIfNegative(ret C.int) error {
|
||||||
var (
|
var (
|
||||||
// ErrNoIOContext may be returned if an api call requires an IOContext and
|
// ErrNoIOContext may be returned if an api call requires an IOContext and
|
||||||
// it is not provided.
|
// it is not provided.
|
||||||
ErrNoIOContext = errors.New("RBD image does not have an IOContext")
|
ErrNoIOContext = errors.New("IOContext is missing")
|
||||||
// ErrNoName may be returned if an api call requires a name and it is
|
// ErrNoName may be returned if an api call requires a name and it is
|
||||||
// not provided.
|
// not provided.
|
||||||
ErrNoName = errors.New("RBD image does not have a name")
|
ErrNoName = errors.New("RBD image does not have a name")
|
||||||
// ErrSnapshotNoName may be returned if an aip call requires a snapshot
|
// ErrSnapshotNoName may be returned if an api call requires a snapshot
|
||||||
// name and it is not provided.
|
// name and it is not provided.
|
||||||
ErrSnapshotNoName = errors.New("RBD snapshot does not have a name")
|
ErrSnapshotNoName = errors.New("RBD snapshot does not have a name")
|
||||||
// ErrImageNotOpen may be returned if an api call requires an open image handle and one is not provided.
|
// ErrImageNotOpen may be returned if an api call requires an open image handle and one is not provided.
|
||||||
|
|
Loading…
Reference in New Issue