opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
145 stars 149 forks source link

Improve errors definition and docs #433

Closed open-junius closed 4 months ago

open-junius commented 4 months ago

Description

Right now a lot of the errors returned by subtensor extrinsics are fairly generic substrate errors. We want these to be as granular / descriptive as possible, so an audit of what errors we are returning should be conducted and we should create new error types and/or utilize existing descriptive ones wherever possible

Related Issue(s)

Type of Change

Breaking Change

If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.

Checklist

Screenshots (if applicable)

Please include any relevant screenshots or GIFs that demonstrate the changes made.

Additional Notes

Please provide any additional information or context that may be helpful for reviewers.