aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-17 13:53:15 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-20 21:08:52 +0000
commit70e886d3ca487c306b8eced9f0e067a67ba9c1bb (patch)
tree2131bece64043051c5dd7921dbe329e22b13e195 /CHANGELOG.md
parentc191e875492ff8aeab1b4493b87486cd265f0edc (diff)
downloadnitrokey-rs-70e886d3ca487c306b8eced9f0e067a67ba9c1bb.tar.gz
nitrokey-rs-70e886d3ca487c306b8eced9f0e067a67ba9c1bb.tar.bz2
Return CommunicationError::NotConnected from connect functions
Previously, we returned a CommandError::Undefined if a connect function failed. A CommunicationError::NotConnected is a more specific and better fitting choice. Once the Try trait has been stabilized, we should return an Option<_> instead of a Result<_, Error> from the connect functions.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 413c626..1856336 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@
- 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.
# v0.3.4 (2019-01-20)
- Fix authentication methods that assumed that `char` is signed.