Open Pauan opened 1 month ago
Currently the APIs sometimes throw errors, and sometimes return an Error object.
Error
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.
@iamalwaysuncomfortable @jaketarnow Just a friendly reminder that this is ready for review.
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.