facebook / akd

An implementation of an auditable key directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cleanup errors in the library

slawlor opened this issue · comments

There's a lot of error codes in the errors.rs library which are incorrectly utilized or not utilized at all. These codes should be cleaned up to only what's necessary and not duplicated in multiple structures.

Additionally, should storage-layer errors be promoted to first-class errors within AkdError?

Other points

  • AkdError should implement fmt::Display
  • Directory::get_current_azks should not return a direct StorageError but a higher AkdError