NethermindEth / starknet-contract-verifier

CLI to verify your starknet contracts classes on block explorers!
Apache License 2.0
19 stars 10 forks source link

Better fail messages for API #26

Closed cwkang1998 closed 5 months ago

cwkang1998 commented 5 months ago

Currently when api requests fails, the returned message only contains failure messages indicating failure but not the actual description of the failure. In cases where error are returned and do not conform to the ApiError form (be it infrastructure or error stemming not from our backend), a parsing error is returned from serde which removes all context for debugging.

Cases that does not return conventional error message should be handled, and more context should be returned in the error messages to ease any future debugging.