strmprivacy / cli

This is the STRM Privacy Command Line Interface, to define and manage your privacy streams, data schemas, event contracts and much more.
https://strmprivacy.io
Apache License 2.0
6 stars 2 forks source link

feat: better cli error handling #89

Closed trietsch closed 2 years ago

trietsch commented 2 years ago

Made the CliExit function accept a parameter of type error, instead of interface{}. This allows for converting the error into a status.Status, which allows access to the individual elements of the gRPC response in case of an error.

Please see common/common/CliExit for the real changes. The rest of the changes is just wrapping strings into errors. A single test is failing due to changes that are required on the other PR.

trietsch commented 2 years ago

Merged into https://github.com/strmprivacy/cli/pull/88