rados: add doc comments for RadosError type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-01-22 12:23:04 -05:00 committed by John Mulligan
parent 030eaaa548
commit bc9b7c58ed
1 changed files with 2 additions and 0 deletions

View File

@ -14,8 +14,10 @@ import (
"github.com/ceph/go-ceph/errutil"
)
// RadosError represents an error condition returned from the Ceph RADOS APIs.
type RadosError int
// Error returns the error string for the RadosError type.
func (e RadosError) Error() string {
errno, s := errutil.FormatErrno(int(e))
if s == "" {