Skip to content

Function to convert gRPC status.Status to DefaultError #127

@stephenpmurray

Description

@stephenpmurray

Preflight checklist

Ory Network Project

No response

Describe your problem

Although this package contains a server-side gRPC interceptor, there doesn't appear to be a function in the library to convert back from gRPC status.Status() in the client side.

Describe your ideal solution

Would you be open to a pr that adds a function like this?

func (status.Status) DefaultError {}

This function would effectively reverse the steps of DefaultError.GRPCStatus() to reconstruct the original type.

Workarounds or alternatives

I was going to make the function myself anyway, but I may as well add it to the library if this is something others would benefit from

Version

v0.10.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions