bugfix: use GetError instead of RDBError to return

Signed-off-by: zhangyue <zy675793960@yeah.net>
This commit is contained in:
zhangyue 2018-12-12 19:41:13 +08:00 committed by John Mulligan
parent fa319f99bb
commit de3bd20fe3
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ func (image *Image) Copy(args ...interface{}) error {
case string:
c_destname := C.CString(t2)
defer C.free(unsafe.Pointer(c_destname))
return RBDError(C.rbd_copy(image.image,
return GetError(C.rbd_copy(image.image,
C.rados_ioctx_t(t.Pointer()),
c_destname))
default: