util: Removing JoinError in favor of fmt.Errorf

Signed-off-by: Mike Perez <thingee@gmail.com>
This commit is contained in:
Mike Perez
2024-05-07 15:51:05 -07:00
committed by mergify[bot]
parent 8f7a4c43be
commit c8af2b638a
8 changed files with 14 additions and 111 deletions

View File

@ -164,7 +164,7 @@ func setOMapKeys(
func omapPoolError(err error) error {
if errors.Is(err, rados.ErrNotFound) {
return util.JoinErrors(util.ErrPoolNotFound, err)
return fmt.Errorf("Failed as %w (internal %w)", util.ErrPoolNotFound, err)
}
return err