Skip to content

Improve error handling in makeLocalGnarkZkOperator function #2

@adithyaakrishna

Description

@adithyaakrishna

The makeLocalGnarkZkOperator function in gnark.ts could benefit from improved error handling to provide more informative messages to users.

Tasks:

  1. Replace the generic console.log statement with a more specific error message.
  2. Consider creating a custom error type for Gnark-related errors.
  3. Ensure that the error message includes information about supported platforms.
  4. Add a try-catch block around the initGnark function call to handle potential errors during initialization.
  5. Update the return statement to provide a more informative error when Gnark is not supported.

Improving error handling will help users better understand and troubleshoot issues when working with Gnark in different environments.

Contributors: Please note that by submitting a pull request, you are agreeing to accept and sign the Contributor License Agreement (CLA) found at https://github.com/reclaimprotocol/.github/blob/main/CLA.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions