Error refactor for peach-lib #38
Reference in New Issue
Block a user
No description provided.
Delete Branch "lib_error_refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a major refactor of the
PeachErrortype, with associated changes to error-handling throughout the codebase ofpeach-lib. Thesnafudependency has been removed in favour of a custom error implementation. ThePeachErrorvariants have also been refined to reduce unnecessary duplication by grouping related errors (total number of variants has been reduced from 27 to 19).The refactored
src/error.rscode is fully documented.I imagine some fine-tuning may be required as we interact with this library via
peach-weband other consumers.Other Changes
config_manager::get_admin_password_hash())usestatements by dependencyclippyunwrap()andexpect()I'm going ahead with a merge on this.