This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use concrete Mentat error types rather than
failure::Error
. (#769) …
…r=grisha In the language of https://github.com/withoutboats/failure/blob/868273409c826755812dbff1b67cc0ac3fa702f7/book/src/error-errorkind.md Mentat is a mid-level API, not an application, and therefore we should prefer our own error types. Writing an initial consumer of Mentat (a Rust logins API targeting Mozilla Lockbox), I have found this to be true: my consumer wants to consume concrete Mentat error types. This doesn't go "all the way" and convert all sub-crates to the Error/ErrorKind, but it does go part of the way.
- Loading branch information
Showing
35 changed files
with
447 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.