digitalbazaar / cborld

A Javascript CBOR-LD processor for web browsers and Node.js apps.
https://json-ld.github.io/cbor-ld-spec/
BSD 3-Clause "New" or "Revised" License
19 stars 16 forks source link

Improve error reporting #45

Open dlongley opened 3 years ago

dlongley commented 3 years ago

CBOR-LD is designed such that it expects valid JSON-LD to be passed to it for compression, however, we should have some better error messages both during compression and decompression when we encounter unexpected types, etc.

gatemezing commented 2 years ago

Hi @dlongley . Yes, that's definitively very useful. We are trying to make a small Web App to use this awesome library but we are not sure how to handle for e.g., conneg on URIs of context.