diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-17 12:47:52 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-20 21:08:50 +0000 |
commit | 5e258d26b55af6bed7c316b1c7ac12e20946702d (patch) | |
tree | fee2be71586bef2f1978eb1cf40ef84c8ac6492b /CHANGELOG.md | |
parent | 944e1fa0d51e547dde2a9368d2b8431b109f63c4 (diff) | |
download | nitrokey-rs-5e258d26b55af6bed7c316b1c7ac12e20946702d.tar.gz nitrokey-rs-5e258d26b55af6bed7c316b1c7ac12e20946702d.tar.bz2 |
Refactor library errors into LibraryError enum
Previously, library errors were part of the CommandError enum. As
command errors and library errors are two different error types, they
should be split into two enums.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index def5273..c34175e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - Refactor the error handling code: - Implement `std::error::Error` for `CommandError`. - Add the `Error` enum and the `Result` typedef. + - Add the `LibraryError` enum and move the library error variants from + `CommandError` to `LibraryError`. - Return `Error` instead of `CommandError` in all public functions. - Move the `CommandError::RngError` variant to `Error::RandError` and the `CommandError::Unknown` variant to `Error::Unknown`. |