asset-transfer-api icon indicating copy to clipboard operation
asset-transfer-api copied to clipboard

Improve/fix error messages

Open IkerAlus opened this issue 1 year ago • 0 comments

After adding features like bridges to the API certain error messages are not accurate. It would be nice to review the error cases and messages to make sure they are accurate and meaningful.

Some examples:

  • When trying to transfer ROC back to Rococo relay from Rococo Asset Hub, the error message mentions Kusama:

InvalidAsset: (SystemToRelay) assetId {"parents":"2","interior":{"X1":{"GlobalConsensus":"Westend"}}} not native to kusama. Expected KSM

  • When inputting an invalid XCM location, the message is outdated ("statemine") and does not consider XCM locations.

InvalidAsset: assetId {"parents":"3","interior":{"X1":{"GlobalConsensus":"Westend"}}} is not a valid symbol or integer asset id for statemine

IkerAlus avatar May 21 '24 09:05 IkerAlus