casper-ecosystem / casper-js-sdk

TypeScript Casper Client SDK
Apache License 2.0
71 stars 60 forks source link

Better Error Handling after 1.5 node release #237

Closed hoffmannjan closed 12 months ago

hoffmannjan commented 1 year ago

So in 1.5 the error logs will be lot more descriptive:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32008,
    "message": "Invalid Deploy",
    "data": "deploy parameter failure: account b05e28fd7d00c2de89ce00b4ded5dad29076e7e020b2086af02dc7703eb216c5 does not exist at prestate_hash: 63cf..eff9"
  }
}

And currently SDK is only showing message when in fact data should be also visible to user. This will probably mean less questions from the community :)