alan-turing-institute / trustchain

Trustworthy decentralised PKI
https://alan-turing-institute.github.io/trustchain/
Apache License 2.0
11 stars 5 forks source link

Handle errors properly, replacing unwrap(), in trustchain-cli main.rs #194

Open thobson88 opened 2 months ago

thobson88 commented 2 months ago

Many instances of unwrap() in the CLI main.rs should be properly handled. (Not urgent, as the CLI will just report the error.)

See the data credentials part for sample code on handling some of the cases (e.g. multiple credential subjects, missing attributes).