Convert code base to Error/ErrorKind pattern #277

Open
opened 2020-08-06 16:57:45 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:45 +00:00 (Migrated from github.com)

#730 did heroic work to convert from error-chain to failure, but our initial consumer (a logins API that consumes Mentat and is in turn consumed by applications like Mozilla Lockbox) is finding that returning failure::Error isn't very helpful. It looks like we'll need to adopt the Error/ErrorKind pattern from 868273409c/book/src/error-errorkind.md.

#730 did heroic work to convert from `error-chain` to `failure`, but our initial consumer (a logins API that consumes Mentat and is in turn consumed by applications like Mozilla Lockbox) is finding that returning `failure::Error` isn't very helpful. It looks like we'll need to adopt the Error/ErrorKind pattern from https://github.com/withoutboats/failure/blob/868273409c826755812dbff1b67cc0ac3fa702f7/book/src/error-errorkind.md.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#277
No description provided.