Skip to content

chore: use errors.Is instead of error equality

Kerri Miller requested to merge github/fork/hoelzro/errors-is into trunk

Created by: hoelzro

This might be needlessly pedantic, but it insulates against potential future changes in error wrapping

Description Removes all of the checks I could find that directly compare error values, rather than using errors.Is

Related Issue

N/A

How Has This Been Tested?

I just made sure the code compiles, plus I did a few one-off manual tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports