dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
151 stars 93 forks source link

chore: Add context to errors thrown on cbor decode #874

Closed frederikrothenberger closed 4 months ago

frederikrothenberger commented 4 months ago

We have the issue in Internet Identity that people complain about hard to diagnose issues. In particular, we regularly encounter users faced with the "failed to parse" message thrown out of borc. It would be very helpful to know what the input was that caused that error.

How Has This Been Tested?

Against existing test suite.

Checklist: