Skip to content

Chore: Improve error handling #17

@codebuster22

Description

@codebuster22

Split complex errors

Split the "Failed generating Proof of Membership" error message into 2 (https://github.com/Curve-Labs/lit-privacy/blob/main/packages/lit-privacy-sdk/src/LitPrivacy/LitPrivacy.ts#L145):
a. The user doesn't hold the token: Return the result of LA2.checkConditions to the SDK & check if the conditions are not met in the SDK, like this: https://developer.litprotocol.com/LitActions/workingWithActions/logAndReturn#returning-a-response
b. Other error (check params passed, etc)

Add error handling here

https://github.com/Curve-Labs/lit-privacy/blob/main/packages/lit-privacy-sdk/src/LitPrivacy/LitPrivacy.ts#L224

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