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.
Made the
CliExit
function accept a parameter of typeerror
, instead ofinterface{}
. This allows for converting the error into astatus.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.