manifoldco / torus-cli

A secure, shared workspace for secrets
https://www.torus.sh
BSD 3-Clause "New" or "Revised" License
614 stars 32 forks source link

Fix bug preventing an error from being mutated #369

Closed ianlivingstone closed 6 years ago

ianlivingstone commented 6 years ago

In certain circumstances a StatusCode would not be set on an apitypes.Error. Instead of having to set two properties, I've added a lookup map for each error type, expanded the error types and added functionality for converting an error type to a status code nad back.

This should prevent this specific bug from occurring in the future.