opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
123 stars 131 forks source link

Improve error granularity #422

Closed sam0x17 closed 1 month ago

sam0x17 commented 2 months ago

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

A/C:

RomanCh-OT commented 2 months ago

I have already implemented the logic for retrieving error data (name and description) from SubstrateInterface metadata. However, we don't know if all errors on the Subtensor side return an error number/index.

Here is the card associated with this implementation.