Error refactor for peach-lib #38
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-workspace#38
Loading…
Reference in New Issue
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
PeachError
type, with associated changes to error-handling throughout the codebase ofpeach-lib
. Thesnafu
dependency has been removed in favour of a custom error implementation. ThePeachError
variants 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.rs
code is fully documented.I imagine some fine-tuning may be required as we interact with this library via
peach-web
and other consumers.Other Changes
config_manager::get_admin_password_hash()
)use
statements by dependencyclippy
unwrap()
andexpect()
I'm going ahead with a merge on this.