aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-20 22:16:36 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-01-20 22:17:37 +0100
commit8c57d3ace0215adb3cd5edd0f18e8cc513f65ff1 (patch)
tree27eb8ac46b130e08d917a7b91da8b48a14b644b6 /CHANGELOG.md
parent5da2735cfb8ccfaea1ebdee850ddd9fbd0bfb003 (diff)
parentd87859975dc158919ecd5bf11a1111a2da5fcb30 (diff)
downloadnitrokey-rs-8c57d3ace0215adb3cd5edd0f18e8cc513f65ff1.tar.gz
nitrokey-rs-8c57d3ace0215adb3cd5edd0f18e8cc513f65ff1.tar.bz2
Merge branch 'feature/error-refactoring' into next
RFC: https://lists.sr.ht/~ireas/nitrokey-rs-dev/%3C20190117000856.slgb6jwkwd3qu6ey%40localhost%3E
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c5ebf3..a4df5c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,19 @@
- Remove the `test-pro` and `test-storage` features.
- Implement `Display` for `Version`.
- Introduce `DEFAULT_ADMIN_PIN` and `DEFAULT_USER_PIN` constants.
+- 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`.
+ - Add the `CommunicationError` enum and move the communication error variants
+ from `CommandError` to `CommunicationError`.
+ - 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`.
+ - Return `CommunicationError::NotConnected` instead of
+ `CommandError::Undefined` from the connect functions.
+ - Remove the `CommandError::Undefined` variant.
# v0.3.4 (2019-01-20)
- Fix authentication methods that assumed that `char` is signed.