painless-security / trust-router

Moonshot Trust Router
0 stars 0 forks source link

tidc should report error on TID lookup error #98

Closed meadmaker closed 6 years ago

meadmaker commented 6 years ago

If I run tidc and get back an error response, it currently has an exit code of 0. It should be non-zero.

meadmaker commented 6 years ago

This would be helpful in testing!

jennifer-richards commented 6 years ago

Yes it would!

jennifer-richards commented 6 years ago

This should be provided by ab87bd8b24a4cf6186f4f41f383eb0cc3eeb80e4. It keeps the current behavior of returning 1 on a local failure, and now should return 2 when a request goes through and gets a response that is an error or is somehow defective.

mrw42 commented 6 years ago

Fixed in most recent release.