Skip to content

CheckScimError cannot be determined when wrapped #185

@otakakot

Description

@otakakot

If you wrap ScimError with fmt.Error() or similar, it will not be recognized as a ScimError by CheckScimError.
To make it easier to handle errors, I would like to judge them using errors.As() rather than err.(ScimError).

https://pkg.go.dev/errors#As

Would you be so kind as to accept the PR to replace errors.As?
I'm happy to work on this if it's likely to be accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions