mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
util: Removing JoinError in favor of fmt.Errorf
Signed-off-by: Mike Perez <thingee@gmail.com>
This commit is contained in:
@ -96,7 +96,7 @@ func (cc *ClusterConnection) GetIoctx(pool string) (*rados.IOContext, error) {
|
||||
if err != nil {
|
||||
// ErrNotFound indicates the Pool was not found
|
||||
if errors.Is(err, rados.ErrNotFound) {
|
||||
err = JoinErrors(ErrPoolNotFound, err)
|
||||
err = fmt.Errorf("Failed as %w (internal %w)", ErrPoolNotFound, err)
|
||||
} else {
|
||||
err = fmt.Errorf("failed to open IOContext for pool %s: %w", pool, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user