Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring error handling #915

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Conversation

Pauan
Copy link
Collaborator

@Pauan Pauan commented Aug 13, 2024

Motivation

Currently the APIs sometimes throw errors, and sometimes return an Error object.

In JavaScript it is idiomatic to always throw errors, so this PR refactors the existing error handling.

This is a breaking change, so it would be good to release this at the same time as mainnet.

@Pauan
Copy link
Collaborator Author

Pauan commented Aug 27, 2024

@iamalwaysuncomfortable @jaketarnow Just a friendly reminder that this is ready for review.

Copy link
Collaborator

@jaketarnow jaketarnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iamalwaysuncomfortable
Copy link
Collaborator

Agreed this should be done before mainnet

@jaketarnow jaketarnow merged commit 4f4dc8c into ProvableHQ:testnet3 Sep 19, 2024
9 of 10 checks passed
@Pauan Pauan deleted the feat/error-refactor branch September 19, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants