Skip to content

Conversation

@johann-cm
Copy link

The methods Uci::get and Uci::delete return an error, if the corresponding entry does not exist. This should be its own error type, and not just a generic Error::Message error.
That way, it is much easier for application code to decide what do do when the entry does not exist.

I've implemented a new Error::EntryNotFound variant. Additionally, I used thiserror to conveniently derive the Error implementation.

makes entry not found error explicit in the type system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants